Am 15.01.2016 um 08:04 schrieb Tilman Hausherr:
Am 15.01.2016 um 06:26 schrieb Rajesh Adhikari:
Dear Team,

I have started using your APIs for one my web application project,
but i am facing some issue with this API.
I am storing the uploaded PDF Form in database in the form of BLOB & later
on when i am retrieving the same uploaded PDF in one of my method which
first loads the PDF in PDDocument using PDDocument.load(new
ByteArrayInputStream(byte[])) gives "java.io.IOException: Error:
End-of-File, expected line".

What version are you using?

What is the size of your byte[] ?
What was the size of your PDF before storing it?

What is the full stack trace?

Additionally - what happens if you save your byte[] into a .PDF file. Can you open it with Adobe Reader?

   FileOutputStream fos = new FileOutputStream (pdf_filename);
   fos.write(byte_array_name);
   fos.close();

Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to