1
Answer

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

Ask a question
Rohit Mahadik

Rohit Mahadik

13y
5.5k
1

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)