开发者

Storing Image in WebApplication Folder

开发者 https://www.devze.com 2023-01-28 05:24 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消