Storing images with LINQ to SQL: Converting byte array or stream to Binary
You can use the constructor:
public Binary(byte[] value)
like this:
yourObj.BinaryProperty = new Binary(bytes);
You can use the constructor:
public Binary(byte[] value)
like this:
yourObj.BinaryProperty = new Binary(bytes);