2 Replies Latest reply on Dec 5, 2010 9:28 AM by Romeo Zdrite

    Rendering an image from a byte array in JSF

    Romeo Zdrite Newbie

      Hey,

       

      I'm trying to render an image in a jsp page from a backing bean which has it stored as an array of bytes, and so far I haven't found any tag or method to do this (probably the answer is very easy but I can't see it - so far I've been searching for a tag that accepts the byte array as value and displays the image). I need this solution in order to display images associated with the rows of a rich:dataTable.

       

      I already tried to save them on the local disk and use h:graphicImage tag to display them but that didn't work as planned. I can see the images only if I save them in the myProj/web/.. directory, and if I do so I can see the images saved only after I restart the application (after the saving process).

       

      Thanks in advance