I am trying to upload an image from the jsp page. I want to store the same image with three names. For the first time the image is stored but it gives a NullPointer Exception at FileItem write method second time in the loop.
Please help.....
Code is
There is a NullPointerException at line 13 second time in the loop