I have a table where the picture has been stored and while loading the form i retrieve that data and data is in System.Byte.
I want this to display in the picture box in window form. I am using C# language and SQL SERVER 2005
my code goes like this :
Byte byteBLOBData = (Byte)(dt.Rows[count]["stud_photo"]); MemoryStream ms = new MemoryStream(byteBLOBData); ms.Write(byteBLOBData, 0, byteBLOBData.Length); photo.Image = Image.FromStream(ms); --- here i am having an error "Parameter not valid"
Please can anyone help me ...Its very important for my project. Thank you in advance