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.
精彩评论