how can i send binary data through web service in asp.net from sql databse

Posted by Shanky11 under Web Services, Remoting on 11/14/2014 | Points: 10 | Views : 970 | Status : [Member] | Replies : 1
i have to send binary data through web service in asp.net
i am saving binary data in sql server




Responses

Posted by: kgovindarao523-21772 on: 11/20/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

You are saving data in SQL Server in varbinary(1024) data type.
The Eqivalent Data type in C# is Byte[].
Hence, Web Service method read the data from DB and retrn type is Byte[].
Then you can access this data in asp.net.

Thank you,
Govind

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response