This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes accessing a pdf file using file upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "accessing a pdf file using file upload" Watch "accessing a pdf file using file upload" New topic
Author

accessing a pdf file using file upload

Arian Gerryts
Greenhorn

Joined: Mar 22, 2012
Posts: 11
I want to access a pdf file for the purpose of splitting it by using JFileChooser but PdfReader cannot read the file. The IOException reads "Publishing Letter.pdf not found as file or resource".



Is it possible to access the pdf file by using the JfileChooser for the purpose of splitting it?, how would I do it?
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

Where is the file?

Where are you executing the Class from?

Without a full path, it could be looking in the wrong place(s).

WP
 
Consider Paul's rocket mass heater.
 
subject: accessing a pdf file using file upload
 
Similar Threads
Reading file in and sperating it out :URGENT
what if I want to write to chooser file rather message the message2=...?
Unable to save a file using JFileChooser
JTextarea and JScrollPane
How to import Image file