1. use Apache commons-upload jars
2. parse the request and get the FileItem (!isFormField())
3.get the InputStream from the FileItem
4.finally read and write the Image
5. and store the image location on server to the DB as a varchar(preferrable)
P.S. make the enctype of the
jsp form attribute as "multipart/form-data"
Hope this helps
![](https://coderanch.com/images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif)