Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BLOB to image file

 
Avik Mazunder
Ranch Hand
Posts: 39
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I get back image from BLOB...
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17995
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to write a servlet that will retrieve the BLOB image from the database and output it on the servlet response outputstream as an image MIME object.

JSF isn't designed for doing this kind of stuff itself, but JSF apps can use those kinds of servlets very nicely.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic