|
image retrieval from sql server using java
Hi,
our clients have a sql server database in which one of the table column of image data type holds a image. The problem is, the column holds image along with some other data which they are doing by using some appendchunk method from VB. they are able to retrieve the image from the column with the help of a method called GetChunk in VB, now i have to do the same thing from java but I am not able to retrieve the image. I have tried resultset.getBytes() & getBinaryStream() by (they are giving the image size in another column) using the imgsize column, I have tried retrieving only certain no of bytes, but not able to see the image. If any body knows about this issue plz reply.......
Following is the method they are using to retrieve the image using VB code:
GetChunk(0, recset("imgsize") * 2)
|