jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android 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: 60782
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
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