for reading image file from row and display it :you could use jsf technology to view image from datasource directly.<t:graphicImage id="image" value="#{bean.object}"/>that object is image's bytes that assign to graphicImage component.