Tomcat upload saves file in bin folder, how to upload in particular directory
Tomcat will upload files by default in to bin folder if you have not specifies a full path while creating a file. This happens because the tomcat startup script runs from tomcat bin folder.
You will have to specify the full path while creating the file name in your program,
Where you have to create the images like