Howdy,
You can do it either way, depending on whether the image is embedded in
a document (then have tomcat serve it with the images under tomcat
webapps) or you just want to serve the image itself back (have tomcat
redirect to apache with the images under apache).

However, let me ask you this: the image names are in a database, but you
do some logic / compose some JDBC query in order to get the name of the
image you want to serve.  All the images are on disk anyways, which
means all the images names are on disk anyways.  Would it be possible
for you to do the image selection logic without the database?  You may
get big performance improvements.  I don't know what your image
selection logic is, but if it's something that can be deduced from the
file system, e.g. the latest image, then you can do this without the DB.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: kal inuganti [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 20, 2003 11:13 AM
>To: [EMAIL PROTECTED]
>Subject: Serving Graphics Q
>
>
>Hi All,
>
>I have tomcat running on apache webserver on windows NT. I would like
to
>serve some graphics (.jpgs) over the web. I have an access database
that
>stores the image name and my servlet uses JDBC to get the name of the
>image. Once I have the image name, I would like to load the image on my
>web-page.
>
>I am a little confused about the actual location of the images...
should I
>put them under apache web server -  htdocs/images/<image> OR
>under tomcat - webapps/ROOT/images/<image>
>
>I understand that I am better off having the web-server serve the
images.
>But what I dont understand is the mechanism... tomcat executes my
servlet
>and will/should it be the one to load the images?
>
>Please suggest.
>
>Thanks,
>-kalyan
>
>
>
>---------------------------------
>Do you Yahoo!?
>Yahoo! Tax Center - forms, calculators, tips, and more



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to