javax.imageio.IIOException: Error reading PNG metadata

pdfbox-users | Andreas Lehmkuehler | 5 years 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

    Re: FW: Need Solution to Add Image file in PDF with PDFBox

    pdfbox-users | 5 years ago | Andreas Lehmkuehler
    javax.imageio.IIOException: Error reading PNG metadata
  2. 0

    Re: FW: Need Solution to Add Image file in PDF with PDFBox

    pdfbox-users | 5 years ago | Andreas Lehmkuehler
    javax.imageio.IIOException: Error reading PNG metadata
  3. 0

    Null Pointer Exception when JPEG has got two SOI markers.

    GitHub | 3 years ago | dhirenpratap
    javax.imageio.IIOException: Invalid JPEG file structure: two SOI markers
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Reading picture from byte array

    Stack Overflow | 4 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 6 months ago
  2. rexgreenza 10 times, last 8 months ago
  3. ptrstovka 2 times, last 1 year 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.io.UTFDataFormatException

    malformed input around byte 785

    at java.io.DataInputStream.readUTF()
  2. Java RT
    ImageIO.read
    1. java.io.DataInputStream.readUTF(DataInputStream.java:612)
    2. javax.imageio.stream.ImageInputStreamImpl.readUTF(ImageInputStreamImpl.java:309)
    3. com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk(PNGImageReader.java:443)
    4. com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:652)
    5. com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1314)
    6. com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1601)
    7. javax.imageio.ImageIO.read(ImageIO.java:1400)
    8. javax.imageio.ImageIO.read(ImageIO.java:1286)
    8 frames
  3. org.apache.pdfbox
    AddImageToPDF.main
    1. org.apache.pdfbox.examples.pdmodel.AddImageToPDF.createPDFFromImage(AddImageToPDF.java:84)
    2. org.apache.pdfbox.examples.pdmodel.AddImageToPDF.main(AddImageToPDF.java:127)
    2 frames