dcsimg
How to display images
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Manju_k
Posted On:   Thursday, April 3, 2003 07:19 AM

Hi ,

In one of my applications image data is stored in database as blob . The names of these images get displayed on a JSP when user wishes to list all available images in system. But I am looking at a way to make the names as links and display the image.


One way is to download the image into a local directory on the server and then provide this directory path as the image src .


Is there a different mechanism to display these images in database onto a browser?



Thanks

Re: How to display images

Posted By:   Eelco_Cramer  
Posted On:   Thursday, April 3, 2003 11:28 PM

You can make a servlet that reads an image from the database and sends the binarydata to the response stream. You should point the img tags in your JSP to this servlet: .
About | Sitemap | Contact