GetSqlBinary to Image ???? VB.NET, BLOB, SQL2000

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I am just trying to load a sql image field into a .Net image variable.
Suggestions?

Dim Im as Image
Im = cType(SqlDataReader.GetSqlBinary(0), image) 'does not work

or

Dim Im As Image
Dim SqlBinValue As SqlBinary
Dim By As Byte()

SqlBinValue = SqlDataReader.GetSqlBinary(0)
By = SqlBinary.op_Explicit(sqlBinValue)

Im = CType(By, Image) 'does not work


Thanks
Bob
 
Bob:

That should do it for you even though it's in access, but if you have any
problems, let me know and I'lll do what I can.

Cheers,

Bill
 
Back
Top