javax.imageio.IIOException: [I cannot be cast to [B

jmrtd | *anonymous | 4 years ago
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problem in JJ2000 image writer

    jmrtd | 4 years ago | *anonymous
    javax.imageio.IIOException: [I cannot be cast to [B
  2. 0

    PImage base64 encode and decode

    Stack Overflow | 3 years ago | user3597285
    java.lang.ClassCastException: [I cannot be cast to [B

    Root Cause Analysis

    1. java.lang.ClassCastException

      [I cannot be cast to [B

      at sun.awt.image.ByteInterleavedRaster.getDataElements()
    2. Java RT
      1. sun.awt.image.ByteInterleavedRaster.getDataElements(
      1 frame
    3. org.jmrtd.imageio
      1. org.jmrtd.imageio.JJ2000ImageWriter.write(
      1 frame
    4. Java RT
      1. javax.imageio.ImageWriter.write(
      1 frame
    5. org.jmrtd.jj2000
      1. org.jmrtd.jj2000.test.ImageTest.<init>(
      2. org.jmrtd.jj2000.test.ImageTest.main(
      2 frames