This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 63349
    
  70

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
 
It's not a secret anymore!