 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
John Zelnik Guest
|
Posted: Sat Sep 27, 2003 6:20 am Post subject: Pictures In HTML |
|
|
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
|
Posted: Sat Sep 27, 2003 7:44 am Post subject: Re: Pictures In HTML |
|
|
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
|
Posted: Mon Sep 29, 2003 2:11 am Post subject: Re: Pictures In HTML |
|
|
You put in on an intranet not the internet. But you still need a web server.
|
|
| Back to top |
|
 |
Andrew Pedersen Guest
|
Posted: Thu Oct 30, 2003 2:24 am Post subject: Re: Pictures In HTML |
|
|
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 |
|
 |
|
|
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
|
|