javax.imageio.IIOException

Error reading PNG metadata

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web108

  • via by Andreas Lehmkuehler,
  • via by Andreas Lehmkuehler,
  • Stack trace

    • javax.imageio.IIOException: Error reading PNG metadata at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:695) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1314) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1601) at javax.imageio.ImageIO.read(ImageIO.java:1400) at javax.imageio.ImageIO.read(ImageIO.java:1286) at org.apache.pdfbox.examples.pdmodel.AddImageToPDF.createPDFFromImage(AddImageToPDF.java:84) at org.apache.pdfbox.examples.pdmodel.AddImageToPDF.main(AddImageToPDF.java:127) Caused by: java.io.UTFDataFormatException: malformed input around byte 785 at java.io.DataInputStream.readUTF(DataInputStream.java:612) at javax.imageio.stream.ImageInputStreamImpl.readUTF(ImageInputStreamImpl.java:309) at com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk(PNGImageReader.java:443) at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:652) ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    2 more bugmates