P
Piedro
Hi group,
how do I read a image/blob field in cas option strict is on?
First I had it turned off and I read it like this:
Dim b() As Byte
If Not dsSupp.Tables(0).Rows(0).Item("BITMAP") Is DBNull.Value Then
b = dsSupp.Tables(0).Rows(0).Item("BITMAP")
end if
with option strict on this gives an error:
Option Strict On disallows implicit conversions from 'System.Object'
to '1-dimensional array of Byte'.
thnx in advance
Peter
how do I read a image/blob field in cas option strict is on?
First I had it turned off and I read it like this:
Dim b() As Byte
If Not dsSupp.Tables(0).Rows(0).Item("BITMAP") Is DBNull.Value Then
b = dsSupp.Tables(0).Rows(0).Item("BITMAP")
end if
with option strict on this gives an error:
Option Strict On disallows implicit conversions from 'System.Object'
to '1-dimensional array of Byte'.
thnx in advance
Peter