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....
Joined: Aug 15, 2004
It is not a servlet specific question, though. Could you please show up your code?