Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

write() method in FileItem

843838Mar 10 2006
I am using commons-fileupload.1.1.jar in Jakarta Apache. But when I call:

File saveTo = new File(upload_path+"/"+name);
item.write(saveTo);


It fails showing following exception:

java.io.FileNotFoundException: /var/www/icma/upload/painting_small.jpg (No such file or directory)

Any solution please?

Thanks in ADVANCE.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2006
Added on Mar 10 2006
0 comments
216 views