According to this tutorial , he have ‘image’ data type to store file bytes. Then, on download action, he just get that image data type value as byte[], but I have problem in my solution.
I’m using SQL 2008, LinqToSQL.
Row screenshot
C# screenshot

Error message

P.S This is my first time to work with ‘save files to db’.
As the error clearly states,
AttchDBis aBinary, not abyte.You can call
.ToArray()to get the rawbyte[]data.