0
frmSingleRecord.picImage.Image = DirectCast(sdr("photo_index"), Image)
此代码是从我MysqlDataReader
和photo_index
是从我数据库的Blob
。我从这段代码中得到错误。DirectCast MySQL的BLOB到一个PictureBox
无法投射'System.Byte []'类型的对象来键入 'System.Drawing.Image'。
如果它有可能DirectCast
a Blob
来PictureBox我怎么能这样做的权利?如果没有任何建议会很好!
不,它不是,也不可能用'CType'。 – GSerg
我怎样才能用'CType'做到这一点? – TKGhoul
[将字节数据加载到图片框]可能的副本(http://stackoverflow.com/questions/6869777/loading-byte-data-to-a-picture-box) – GSerg