java.io.UTFDataFormatException: malformed input around byte 785

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
    java.io.UTFDataFormatException: malformed input around byte 785
  2. 0

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

    pdfbox-users | 5 years ago | Andreas Lehmkuehler
    java.io.UTFDataFormatException: malformed input around byte 785
  3. 0

    1.7_02 -> 1.5, Now throws java.io.UTFDataFormatException (I/O and Streams forum at JavaRanch)

    coderanch.com | 2 years ago
    java.io.UTFDataFormatException: malformed input around byte 31
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    1.7_02 -> 1.5, Now throws java.io.UTFDataFormatException

    Coderanch | 5 years ago | Daniel Croft
    java.io.UTFDataFormatException: malformed input around byte 31

    1 unregistered visitors

    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