Skip to content

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

Rohit Mahadik

Asked Oct 27, 2010, 11:32 PM EDT1 answer
Share
LinkedInX

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...

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • Suthish Nair
      0
      refer link might help
      0