0 Replies Latest reply: Nov 24, 2010 5:41 AM by 818300 RSS

    JAI - Exception - Decoding of old style JPEG-in-TIFF data is not supported.

    818300
      Hi,
      Converting a TIFF IMAGE to JPEG using Image Decoder gives the below exception. It works fine for TIFF images. But if a TIFF image contains a JPEG image it is not working.

      Exception:
      java.io.IOException: Decoding of old style JPEG-in-TIFF data is not supported.
           at com.sun.media.jai.codecimpl.CodecUtils.toIOException(CodecUtils.java:76)
           at com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:109)


      Code:
      com.sun.media.jai.codec.FileSeekableStream ss = new com.sun.media.jai.codec.FileSeekableStream(argImageLocation[imgIdx]);
      ImageDecoder decoder = ImageCodec.createImageDecoder("tiff", ss, tiffDecodeParam);

      Edited by: 815297 on 24 Nov, 2010 3:34 AM