图片读取出错,请求帮助
程序代码:
= "select pic from Table_1 where no=1"; byte[] bytepic=(byte [])cmd.ExecuteScalar (); if (bytepic.Length > 0) { MemoryStream stream = new MemoryStream(bytepic,true ); stream.Write(bytepic, 0, bytepic.Length); pictureBox2.Image = Bitmap.FromStream(stream,true ); stream.Close(); }图片读取出错。
执行出错,指向红色字体,说:参数无效!
怎么改啊?请指点。