Nope. Only need two at most. Each of them sets their own content type
(image streamer sets it to image/jpg, HTML producer to text/html).
And in answer to your other question, yes, this could be reduced to just
one servlet that does conditional setting of content-type and content.
But you
how do you store your image files in your DB? as BLOB objects or as
references to image files at some location?
Ozgur.
-Original Message-
From: john-paul delaney [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 3:15 AM
To: Tomcat Users List
Subject: Re: Html/jpg from db
Are there any examples of these techniques available?
thanks
/j-p.
On Mon, 22 Apr 2002, Jeffrey Bonevich wrote:
Nope. Only need two at most. Each of them sets their own content type
(image streamer sets it to image/jpg, HTML producer to text/html).
And in answer to your other question,
Hello List...
Using a servlet, I retrieve an image from a database, but I want to send it in a
formatted html page to the client... any suggestions on how to approach this
(combining html and streaming images) appreciated.
thanks
/j-p.
---
JUSTATEST Art Online
Yes, make the image element's src attribute a call to a servlet that
just streams out the image. So for example, in your HTML page you have:
img src=http://mydomain.com/mywebapp/imagestreamservlet?imageID=xxx;
Then the 'imagestreamservlet' does the image lookup and streams it out
to the
Hello List...
Using a servlet, I retrieve an image from a database, but I want to send it in
a formatted html page to the client... any suggestions on how to approach
this (combining html and streaming images) appreciated.
If you wish to send BOTH html and the image in the same
On Sun, 21 Apr 2002, Jeffrey Bonevich wrote:
Thanks Jeff... I'll try this out - following your suggestion, I was thinking to put
the dimensions of the image (jpg) in the database too and to retrieve it along with
the image - the html will be a combination of includes and dynamic written by the
On Mon, 22 Apr 2002, Nikola Milutinovic wrote:
Thanks Nix... then I'm thinking I need three servlets to handle for each page sent to
the client... 1. Write the html header, 2. Get image from db and send the image, 3.Add
in dimensions to img tag add the footer.
Is this correct?
regards