inserting byte array in dataset's VARBINARY on the fly and vice versa

Oct 28 2010 3:32 AM

Hello Partners,

on desktop application I am uploading photos and storing physically on the webserver with the help of webservice and in DB I am storing physical path of that photo.

On the other hand, I want to download the images for later use at that time I am creating bytestream from the physical path and storing it the dataset column whose datatype is VARBINARY(MAX)

I can return byte array which creates the images on the client side very easily.

The main problem I am facing here is, I am not convert the byte array into dataset's VARBINARY format.

I really will be thankful for ur help...



Answers (1)