I am sending image to a Servlet using html form. I am getting only filename but wants the full path of the image. Second, i want to开发者_运维问答 store this image in web application images folder.
I am getting only filename but wants the full path of the image
For security reasons it is impossible to get the full path to the image on the client computer. This information is never sent to the server.
As far as the second part of your question is concerned about storing the uploaded image on the server, there are many articles out there illustrating this.
精彩评论