parvin parvin - 2 years ago 176
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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download