Need help with download a PDF from the internet and feed it to the PDFparser
0 posts in topic
Flat View  Flat View

Posted By:   Tonia_R
Posted On:   Wednesday, June 29, 2005 12:10 PM


I am having some trouble downloading a pdf file from a site and feed the file to the PDF parser. This whole process is done in java, and the parser used is PDFBox. I use the URLConnection to get the file and then send it to the InputStream. The parser needs inputstream to work, but when i send the PDF to the parser it rejects it saying "java.io.IOException: Error: Header is corrupt ''"
But yet that file works perfectly when it is localed on the local hard drive and not on a server. How do i fix this?


About | Sitemap | Contact