BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pictures In HTML

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
John Zelnik
Guest





PostPosted: Sat Sep 27, 2003 6:20 am    Post subject: Pictures In HTML Reply with quote



Hi,
Is it possible to imbed graphic pictures in text form from database into
HTML text using DELPHI 5 Pro, so that after the HTML code is generated, I
can view the HTML file without the need for WEB server or having to store
the JPEG files in a folder?
The HTML file would only be located on the local machine, never on Internet.
Thanks,
John



Back to top
John Zelnik
Guest





PostPosted: Sat Sep 27, 2003 7:44 am    Post subject: Re: Pictures In HTML Reply with quote



Hi,
And thank you for the lightening-fast reply. Unfortunately, I cannot use a
webserver as the HTML doc will be displayed inside an application and I
cannot rely on the customers having a swebserver installed. Many of them
would not be connected to the Internet either.
I just need to create a grid with several entries (20..100) containing a
company logo, some textual company info and a some e-mail & WEB links. The
grid would have to accept new record from time to time...
Is there any other way of achieving this without putting the stuff on the
Internet?
Thanks,
John



"Deepak Shenoy [TeamB]" <nomail (AT) nomail (DOT) com> wrote

Quote:
John Zelnik wrote:

Hi,
Is it possible to imbed graphic pictures in text form from database into
HTML text using DELPHI 5 Pro, so that after the HTML code is generated,
I
can view the HTML file without the need for WEB server or having to
store
the JPEG files in a folder?
The HTML file would only be located on the local machine, never on
Internet. Thanks,
John


I don't know any method to store image data in HTML (short of using a Java
Applet or Activex control to display the image)

But if you're willing to consider using a web server, here's a method:

in your HTML where you refer to your Image use a tag like this:
img src="myisapi.dll/getimg?id=10"

(This is an example)

In your ISAPI DLL, add a new webaction for the pathinfo "/getimg". In this
handler use the image id (10 in this example) to get the image from the
database as a Blobfield. Copy this field stream to Response.ContentStream,
and before that set Response.ContentType to "image/jpeg".

--
Deepak Shenoy [TeamB]
Agni Software
http://www.agnisoft.com



Back to top
Del Murray
Guest





PostPosted: Mon Sep 29, 2003 2:11 am    Post subject: Re: Pictures In HTML Reply with quote



You put in on an intranet not the internet. But you still need a web server.


Back to top
Andrew Pedersen
Guest





PostPosted: Thu Oct 30, 2003 2:24 am    Post subject: Re: Pictures In HTML Reply with quote

Try using the file:/// protocol in your HTML, i.e.

<img src="file:///drive:my_app_pathmy_app.exe?some_params">

You'll have to modify your app to respond to the params, or create a DLL to
extract the image from the database and stream it back to the browser.



"John Zelnik" <zelnikj (AT) zeta (DOT) org.au> wrote

Quote:
Hi,
Is it possible to imbed graphic pictures in text form from database into
HTML text using DELPHI 5 Pro, so that after the HTML code is generated, I
can view the HTML file without the need for WEB server or having to store
the JPEG files in a folder?
The HTML file would only be located on the local machine, never on
Internet.
Thanks,
John






Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.