File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes BLOB to image file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "BLOB to image file" Watch "BLOB to image file" New topic

BLOB to image file

Avik Mazunder
Ranch Hand

Joined: Jun 27, 2012
Posts: 39

How can I get back image from BLOB...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17257

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: BLOB to image file
It's not a secret anymore!