You can upload your file by getting the inputstream in your servlet and store it in the directory with in the server. Store the directory path with name of the image into the database.
The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
Anubody tell me please how to store images in database using jsp. and how to retrieve them.
Anurag
You didn't specify the Database to store and retrieve images so there is a link which is hopefully helpful to you. Example to store & retrieve images from Oracle database