Following code snippet show how to read the VarBinary data of SQL Server into C#.
Lets suppose you have a DataTable in which you are loading the data from SQL Server database using SqlDataAdapter object. For each DataRow of the DataTable you want to get the VarBinary data into MemoryStream for further processing, you can use following code snippet.
using (MemoryStream memStream = new MemoryStream((byte)row["VarBinaryDataField"]))
Hope this will help.