aspose file tools*
The moose likes JSP and the fly likes Displaying image blob in jsp using image tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Displaying image blob in jsp using image tag" Watch "Displaying image blob in jsp using image tag" New topic
Author

Displaying image blob in jsp using image tag

Aruna Ponaka
Greenhorn

Joined: Dec 08, 2009
Posts: 9
Hi,

I am developing an application in struts 2. The application allows the user to upload image and it is saved as blob in mysql database. How can I retrieve the image using image tag so that I could be able to display other text also.

Thanks,
Aruna
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61218
    
  66

By setting the src of the image tag to the URL of a servlet that serves the image data.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying image blob in jsp using image tag