java.lang.IllegalArgumentException: Bad endianness tag (not 0x4949 or 0x4d4d).

Coderanch | imran Faruqui | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Tiif toJpeg conversion

    Coderanch | 1 decade ago | imran Faruqui
    java.lang.IllegalArgumentException: Bad endianness tag (not 0x4949 or 0x4d4d).

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Bad endianness tag (not 0x4949 or 0x4d4d).

      at com.sun.media.jai.codec.TIFFDirectory.getNumDirectories()
    2. com.sun.media
      TIFFImageDecoder.decodeAsRenderedImage
      1. com.sun.media.jai.codec.TIFFDirectory.getNumDirectories(TIFFDirectory.java:588)
      2. com.sun.media.jai.codecimpl.TIFFImageDecoder.getNumPages(TIFFImageDecoder.java:105)
      3. com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:109)
      3 frames
    3. Unknown
      ConvTifJpg.main
      1. ConvTifJpg.<init>(ConvTifJpg.java:36)
      2. ConvTifJpg.main(ConvTifJpg.java:24)
      2 frames