I have a SQL database that contains images stored as a byte array. I have done some searching and have not found much on how to convert these into a useable Image type for a JSF page. Any help would be greatly appreciated!
Thanks in advance!
(using JSF 2.0)
Just a create a controller that output the right media type
(image/*)and output the bytes. There is no need to convert anything. If you want to manipulate the images then yes you can convert it usingImageIO.read. But from your question it sounds like you just want to display the image.