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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.