开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜