There are four separate problems here:
1) Send the image from the browser to the server. Use a form like this:
(Replace xxx as required) This way the file data will be available on the server, as long as you handle it properly.
3) Put the image data into the database. Use a PreparedStatement with setBinaryStream.
4) Show the image. You shouldn't do this directly using a JSP; those are not meant for binary data. Instead, use a servlet to display the image. In the JSP you can use a simple <img> tag with the src attribute set to the servlet (possibly with parameters). For example:
getimage is then a URL mapping to the servlet. This servlet takes the id parameter and uses it to retrieve and output the image data.