If you have already extracted the byte array for the image, then try
You can also look at setBlob() method of the xxxxxxxxStatement object you use.
"It is almost always answered in the API" - Murali Nanchala
posted 15 years ago
I have tried out the method of the setBlob. But the problem is how to get the reference of the Blob interface. I couldn't find any code which returns the Blob's reference. So I tried it in a different way: I inserted a empty image into the database by empty_blob() function of SQL. Then I used the setBytes of the blob interface to set the image bytes in it. But it gave an runtime exception: java.lang.AbstractMethodError. What could be the problem. Please help me in solving it.