K
kafsar
Guest
While convert saved image in database to bitmap image error:
While DR.Read()
Dim pictureData As Byte() = CType(DR("Template"), Byte())
Dim myimage As Image
Dim ms As System.IO.MemoryStream = New System.IO.MemoryStream(pictureData)
myimage = System.Drawing.Image.FromStream(ms) ''' HERE IS ERROR (Parameter is not valid.)
DatabaseFingerprints.AsBitmap = myimage
End while
error: Parameter is not valid at line: myimage = System.Drawing.Image.FromStream(ms)
what is wrong?
Thanks
Continue reading...
While DR.Read()
Dim pictureData As Byte() = CType(DR("Template"), Byte())
Dim myimage As Image
Dim ms As System.IO.MemoryStream = New System.IO.MemoryStream(pictureData)
myimage = System.Drawing.Image.FromStream(ms) ''' HERE IS ERROR (Parameter is not valid.)
DatabaseFingerprints.AsBitmap = myimage
End while
error: Parameter is not valid at line: myimage = System.Drawing.Image.FromStream(ms)
what is wrong?
Thanks
Continue reading...