开发者

simplest way to use <input type="file">

开发者 https://www.devze.com 2023-02-23 05:54 出处:网络
I want to store user picture along with oth开发者_StackOverflower attributes, I want to store path of image in database and copy of image to my desire folder,

I want to store user picture along with oth开发者_StackOverflower attributes, I want to store path of image in database and copy of image to my desire folder,

Please help for solution .


You can use:

  • commons-fileupload (guide)
  • servlet 3.0 multipart support (if you are using servlet 3.0 compliant container)

Then use a folder outside the web application (configurable in some way) and store the path in the database.

0

精彩评论

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