• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying image blob in jsp using image tag

 
Aruna Ponaka
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By setting the src of the image tag to the URL of a servlet that serves the image data.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic