public byte[] ReturndbImage()
{
Image_table table = new Image_table();
var row = from s in db.Image_tables
where s.Id == 1
select s.imag;
byte[] b = null ;
int cou = row.Count();
b = (byte[])(row).Single().ToArray();
return b;
}
hi i am using Microsoft visual studio 2013 and I am trying to get image stored in database using linq .i am unable to get image. my image is stored in db as varbinary<> .I am unable to convert back to binary[].i have records in database It still give null value.