Megha,
If you are looking for someone to give the code to you, you are in the wrong place.
If you want to serve up an image through a
servlet, what you do is retrieve the contents of the blob into memory as a byte array, and then write it to the servlet's output stream. Also set the request's content type to match the content type of the image. So, if the image is a JPEG, you have to set the content type to image/jpg
If you are using spring mvc, add HttpServletRequest and HttpServletResponse as parameters to your handler method. Spring will automatically pass you the request and response if it sees it in the method
Btw, are you already using spring mvc, or are you looking at spring mvc just to serve the image from database. I wouldn't recommend adding spring mvc just to serve the image. It's as easy to do it in a servlet.