I am storing an image in the SQL Server database, but facing a problem in retrieving it back. I am using PreparedStatement and getBinaryStream() method to retrieve an image as InputStream. But after that, I am unable to convert it from the InputStream to a byte array. If anybody know the solution, please letme know....
Chidanand, I have used your code and it's working perfectly. Thanks...
Earlier I was trying to write the bytes to a file...but it was too slow.. but on using imageio as in your code.... it's working quite fast... thanks...
Nidhi
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
Gift giving made easy with the permaculture playing cards