代码: if(dr.HasRows)
{
dr.Read();
byte[] bytes = (byte[]) dr["Photo"];
MemoryStream ms =new MemoryStream(bytes);
Image image = Image.FromStream(ms);
pictureBox1.Image = image;
}
为什么总是报byte[] bytes = (byte[]) dr["Photo"];这句的错。