Hey i have a problem i want to retrieve the image from database

Can anyone give the solution of my problem.
I inserted the image into database in BLOB datatype now i want to retrieve the image from database what should i do plz give me solution for this problem. I m using java