hi,
Good day everyone, I have a problem to directly retrieve binary data from sql server , please help.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manoj SevdaPosted Nov 22, 2011, 3:46 AM
if (dt.Rows[0]["Photo"].ToString() != "")
{
MemoryStream m = new MemoryStream(dt.Rows[0]["Photo"].ToString(), true);
picPhoto.Image = Image.FromStream(m);
m.Close();
}
Sam HobbsPosted Nov 21, 2011, 6:30 PM
Satyapriya NayakPosted Nov 21, 2011, 9:57 AM
Please refer the below link
http://www.codeproject.com/KB/database/SqlFileStream.aspx
Thanks