无法将类型为'System.Byte []'的对象强制转换为'System.Drawing.Image'。
问题描述:
PictureBox1.Image = ds.Tables(GPN)。行(i).Item(4)
PictureBox1.Image = ds.Tables("GPN").Rows(i).Item(4)
答
请参阅此处的解决方案和评论。 .. 无法投射'System'类型的对象.Byte []'键入'System.Drawing.Image [ ^ ]
Refer to the solution and comments here...Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Image[^]