parvin parvin - 5 months ago 24
Java Question

jar file for StreamedContent in java

I want to retrieve file from db and display it in datatable in primefaces.
I want to use this code:

public StreamedContent convertFichier(byte[] bytes) {
InputStream is = new ByteArrayInputStream(bytes);
System.out.println("size file : " + bytes.length);
StreamedContent image = new DefaultStreamedContent(is);
System.out.println("dans le convertisseur : " + image.getContentType());
return image;

But I don't know what jar file is used for


Look at this page and jar file

StreamedContent located in this package inside jar above


You can also download jar with sources from Community download block on page which I specified earlier.