为什么我从SQL数据库读书的图片再写保存回数据就会出错,如果是从硬盘上选的图片就不会出错。谢谢!
Dim arrPicture() As Byte = CType(dsPictures.Tables(0).Rows(0)("E_PICTURE"), Byte())
Dim ms As New MemoryStream(arrPicture)
With PictureBox1
.Image = Image.FromStream(ms)
.SizeMode = PictureBoxSizeMode.CenterImage
End With ‘从数据库读书图片的代码