javax.imageio.IIOException: Error reading PNG image data

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Amrut Chaudhary, 1 year ago
javax.imageio.IIOException: Error reading PNG image data
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:223)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.DataInputStream.readFully(DataInputStream.java:178)
at com.sun.imageio.plugins.png.PNGImageReader.decodePass(PNGImageReader.java:1075)
at com.sun.imageio.plugins.png.PNGImageReader.decodeImage(PNGImageReader.java:1179)
at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1284)
at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1560)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at javax.imageio.ImageIO.read(ImageIO.java:1326)
at com.asite.imageio.ImageIOTest.readImage(ImageIOTest.java:45)
at com.asite.imageio.ImageIOTest.main(ImageIOTest.java:27)

Users with the same issue

Once, 4 weeks ago
2 times, 4 months ago
Once, 5 months ago
30 times, 10 months ago
Once, 1 year ago
10 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.