Thankyou Mr.Viswanath for responding.
Actually I have an existing oracle database.In that there is a field called "photos" is of type BLOB. I am doing an web application using that database.So in
java using Resultset->getBlob() can read that field. How can i convert this into image object.