use of List<StreamedContent> in Galleria or Ui:repeat to show jpg Byte[] using p:graphicImage PF13.0.1 #263
-
Hi All, Above you can see an image of the panel that we are rendering to. As you can see I can access the signatures and read the class data from it. In the XHTML file I am calling:
I have also tried to use a repeat and this is also not working.
The mime type is hardcoded as these files will always be jpeg. I have also tried .jpg but to no avail. The signatures class is a plain ordinary java object (POJO) class, where the files byte data is stored in the sigImage byte array.
To recap, data is read from a database for signature data, which contains byte data. This byte data is then stored in sigImage. This data is then converted into a StreamedContent object which I was hoping to use to render the images on the XHTML. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Just check our showcase, thats how we support it: if you would like to understand why its a bit more complicated then just binding a |
Beta Was this translation helpful? Give feedback.
Just check our showcase, thats how we support it:
https://www.primefaces.org/showcase/ui/multimedia/galleria/dynamic.xhtml
if you would like to understand why its a bit more complicated then just binding a
List<StreamedContent>
, you need to understand: https://primefaces.github.io/primefaces/14_0_0/#/core/dynamiccontent