1.
private
void
ShowPicture(
int
index)
2.
{
3.
byte
[] photo = (
byte
[])_dataset.Tables[
"liststudent"
].Rows[index][
"pic"
];
4.
MemoryStream streamphoto =
new
MemoryStream();
5.
streamphoto.Write(photo, 78, photo.Length - 78);
6.
pictureBox1.Image = Image.FromStream(streamphoto);
7.
conn.Close();
8.
}