Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

load PDF file from website

 
Andrew Cho
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,

I am writing a program that reads from PDF files. It runs sucessfully when I read from PDF files that are on the local system. However, the goal of this is to read PDFs from a http or https site.
I keep getting this message:



I am using the PDFBox from apache.
Here's a little code that doesn't work with the http url but works with the system path:



Any ideas?

thanks,
Andrew
 
Andrew Cho
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry,

really simple fix. I just needed to replace

with


Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic