Comment

Nithyanand
It worked!!,
April 24, 2009 at 8:14 PM

It worked after a bit of tinkering. Those of you using netbeans 6.5, you have download commons-fileupload-1.2.1 and its dependencies commons-io-1.4. Add the jar files to your project library.

At

File(config.getServletContext().getRealPath("/")
+"emp_image\\image\\"+itemName);

make sure the directory (\emp_image\image\) exists at the relative path or the path of you project's working directory!!! If not it will not save on to the disk.

Thanks RoseIndia.
View All Comments | View Tutorial
Related Tutorial and Articles

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles