本文介绍了PictureBox问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个包含图像BLOB字段的表。我想 将图片从 数据库直接复制到一个图片框控件,我已经尝试了以下 : Dim c as Integer c = sDataSet.Tables(0).Rows.Count Dim bytBLOBData()As Byte = sDataSet.Tables(0).Rows(c-1)(" Image") Dim stmBLOBData As New System.IO.MemoryStream(bytBLOBData) 我收到错误无效参数用户在以下行之后: Me.PictureBox2.Image = Image.FromStream(stmBLOBData) 我也尝试更改以下行 - 仍然是无效参数 用户错误。 Dim bytBLOBData()As Byte = CType(sDataSet.Tables(0).Rows(c-1)(" Image"),Byte() ) 请有人给我一个想法,请提前谢谢。 问候。Hi,I have a table which contains a BLOB field for image. I would liketo copy a picture fromdatabase directly to a picture box control and I have tried thefollowing:Dim c as Integerc = sDataSet.Tables(0).Rows.CountDim bytBLOBData() As Byte =sDataSet.Tables(0).Rows(c-1)("Image")Dim stmBLOBData As New System.IO.MemoryStream(bytBLOBData)I get the error "Invalid Parameter user" after the following line:Me.PictureBox2.Image = Image.FromStream(stmBLOBData)I also tried changing the following line - still "Invalid Parameteruser" error.Dim bytBLOBData() As Byte =CType(sDataSet.Tables(0).Rows(c-1)("Image"), Byte())Can anyone give me an idea please, thanks in advance.Regards.推荐答案 这篇关于PictureBox问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-05 22:38