java.io.UTFDataFormatException

malformed input around byte 785

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web204

  • via incubator-pdfbox-users by Andreas Lehmkuehler, 2 weeks ago
    malformed input around byte 785
  • via pdfbox-users by Andreas Lehmkuehler, 9 months ago
    malformed input around byte 785
  • via pdfbox-users by Andreas Lehmkuehler, 9 months ago
    malformed input around byte 785
  • Stack trace

    • 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) 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)

    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 user
    2 times, 1 year ago
    Unknown user
    Once, 3 days ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    3 more bugmates