无法将类型为'System.Byte []'的对象强制转换为'System.Drawing.Image'。 [英] Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Image'.

查看:85
本文介绍了无法将类型为'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[^]


这篇关于无法将类型为'System.Byte []'的对象强制转换为'System.Drawing.Image'。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆