hi
i have a picture in SQL data base
i want load it in a picturebox in a form of Windows App;
use this cod but have an error
error message is :
Cannot implicitly convert type 'object' to 'byte[]'. An explicit conversion exists (are you missing a cast?)
this program is writed with C# lan;
plz help me.
thanks
i have a picture in SQL data base
i want load it in a picturebox in a form of Windows App;
use this cod but have an error
byte
[] imgBytes = reader[
"image column"
];
MemoryStream imgStream =
new
MemoryStream(imgBytes);
pictureBox1.Image= Image.FromStream(imgStream);
error message is :
Cannot implicitly convert type 'object' to 'byte[]'. An explicit conversion exists (are you missing a cast?)
this program is writed with C# lan;
plz help me.
thanks