Storing images with LINQ to SQL: Converting byte array or stream to Binary Storing images with LINQ to SQL: Converting byte array or stream to Binary arrays arrays

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);