I want to serve an image saved as a blob in a MySQL Database through hibernate3 in a JSF application. My intention is that /myapp/image/get.faces?id=x will serve the image saved in the database with id x. How to achieve this?
I want to serve an image saved as a blob in a MySQL Database
Share
byte[](mapped as@Lob) by
id.HttpServletResponseThe fellow BalusC wrote a nice post about such an image servlet on his blog. If you have troubles with the Hibernate part, please elaborate.