File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 8
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: 60752
    
  65

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]
 
wood burning stoves
 
subject: Displaying image blob in jsp using image tag
 
Similar Threads
Getting information from a Image file stored on client side
Getting a Image from a Blob using Servlet
java.sql.*
Image Read from Blob
Writing as a JPG file to disk