This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 63208
    
  69

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!