Dim pbx As WinForm.PictureBox = e.Form.Controls("PictureBox2")
Dim cmd As New SQLCommand
Dim ds As DataTable
cmd.Conne cti
cmd.Com mandText = "SEL ECT match_image,id From {camera_rec_record} where id = '" & tb1.Current("id") & "'"
ds = cmd.ExecuteReader()
If ds.datarows.count > 0 Then
Dim imageByte() As Byte = ds.datarows(0)("match_image")
Dim ms As New system.IO.MemoryStream(imageByte)
Dim image As Image = Image.FromStream(ms)
pbx.Image = image
Else
pbx.Image = Nothing
End If
无法将类型为“System.String”的对象强制转换为类型“System.Byte[]”。
照着这样写,出现上面错误,是什么原因