In one of my application I have to store and then display the image in JSP.
How to store and retrieve image from database in JSP?
You can use one program to insert image into database. Check the tutorial:
Uploading Employee Profile with image.
Now write another program to download and display the image. Check this example:
Retrieve image from database using Servlet.