javax.imageio.IIOException: Error reading PNG image data

JDK Bug System | Ting-Yun Ingrid Yao | 5 years ago
  1. 0
  2. 0
  3. 0

    Java IIOException caused by ZipException while trying to convert from String to PNG

    Stack Overflow | 2 years ago | ocramot
    javax.imageio.IIOException: Error reading PNG image data
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Reading picture from byte array

    Stack Overflow | 3 years ago | Edison
    javax.imageio.IIOException: Error reading PNG image data at com.sun.imageio.plugins.png.PNGImageReader.readImage(Unknown Source)

  1. serious2monkeys 3 times, last 3 months ago
  2. rexgreenza 10 times, last 4 months ago
  3. ptrstovka 2 times, last 9 months ago
16 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.zip.ZipException

    invalid distance too far back

    at java.util.zip.InflaterInputStream.read()
  2. Java RT
    ImageIO.read
    1. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
    2. java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    3. java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    4. java.io.FilterInputStream.read(FilterInputStream.java:83)
    5. com.sun.imageio.plugins.png.PNGImageReader.decodePass(PNGImageReader.java:1085)
    6. com.sun.imageio.plugins.png.PNGImageReader.decodeImage(PNGImageReader.java:1196)
    7. com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1301)
    8. com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1577)
    9. javax.imageio.ImageIO.read(ImageIO.java:1448)
    10. javax.imageio.ImageIO.read(ImageIO.java:1352)
    10 frames
  3. Unknown
    TestImageIO.main
    1. TestImageIO.main(TestImageIO.java:10)
    1 frame