Code:
sql = "SELECT RecordNum, DelDate, FName, Lname, Phone, Email, DevMake, DevModel, Carrier, DevColor, UsserPassword, MobileId, Repaired, RepComments, ServiceType, FindUs, DateDone, AuthorizeRepair, BackUpInfo, TecTrained, NotResponsible, VoidWarranty, FeesPaid, DiagnosticFee, Pricequote, Deposit, Total, signature FROM RepairData ORDER BY Lname"
Dim imgMemoryStream As MemoryStream = New MemoryStream()
da = New OleDb.OleDbDataAdapter(sql, con)
da.Fill(ds, "RepairData")
Dim c As Integer = ds.Tables("RepairData").Rows.Count
If c > 0 Then
Dim n As Integer
For n = 1 To c
If ds.Tables("RepairData").Rows(n - 1)("signature") IsNot DBNull.Value Then
Debug.WriteLine(ds.Tables("RepairData").Rows(n - 1)("signature"))
Dim imageBytes() As Byte = _
DirectCast(ds.Tables("RepairData").Rows(n - 1)("signature"), Byte())
Dim myStream As New MemoryStream(imageBytes)
ds.Tables("RepairData").Rows(n - 1)("signature") = Image.FromStream(myStream) 'error myStream here
End If
Next
End If
Comment