0 Replies Latest reply on Oct 4, 2008 11:53 AM by He Bo

    s:graphicImage throws exception javax.imageio.IIOException: Unsupported Image Type

    He Bo Newbie

      Hi,
      I am getting  Unsupported Image Type on s:graphicImage above 400kb
      I am able to upload the image file but while rendering the image above 400kb throws exception while the images below 400 kb are rendered properly


      <s:graphicImage rendered="#{myBean.imagFile ne null}" value="#{myBean.imgFile}">
           <s:transformImageSize width="200" maintainRatio="true"/>
      </s:graphicImage>



      I have also added


      <web:multipart-filter create-temp-files="true" max-request-size="700000000" url-pattern="*.seam"/>



      The stack trace for it is


      javax.imageio.IIOException: Unsupported Image Type
           com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:940)
           com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:915)
           org.jboss.seam.ui.graphicImage.Image.readImage(Image.java:457)
           org.jboss.seam.ui.graphicImage.Image.readImage(Image.java:405)
           org.jboss.seam.ui.graphicImage.Image.setInput(Image.java:141)
           org.jboss.seam.ui.graphicImage.GraphicImageRendererBase.doEncodeBegin(GraphicImageRendererBase.java:31)
           org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
           javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:785)
           org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
           org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
           org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
           org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)




      Any one please explain why I am not able to load the images above 400kb???
      Help!!!


      Thanks
      BP