title: graphicimage not rendering streamedcontent in Primefaces
body: <p>I'm using streamedcontent to render a byte sent from JSF then send it back as a streamed content as following:</p>
  
  <pre><code>&lt;p:graphicImage value="#{manage.bytesToStreamedContent(car.image)}"/&gt;
  </code></pre>
  
  <p>where image is the byte array of the image stored in the database</p>
  
  <p>backing bean:</p>
  
  <pre><code>public StreamedContent bytesToStreamedContent(byte[] bytes)
  {
      InputStream is = new ByteArrayInputStream(bytes);
      StreamedContent image = new DefaultStreamedContent (is, "image/jpeg");
      return image;
  }
  </code></pre>
  
  <p>But I'm not getting the image in the JSF page. I got this message appearing in the server log:</p>
  
  <p>WARNING: JSF1091: No mime type could be found for file dynamiccontent.  To resolve this, add a mime-type mapping to the applications web.xml.</p>
  
  <p>and:</p>
  
  <pre><code>SEVERE: Error in streaming dynamic resource.
  </code></pre>
  
  <p>can you please help me out here, I cant find any useful info regarding this issue</p>
  
  <p>PS:</p>
  
  <p>Im using the following libraries:</p>
  
  <p>Mojarra 2.1.3</p>
  
  <p>PrimeFaces 3.1.1</p>
  
  <p>Glassfish 3.1</p>