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

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
 
W

William Ryan eMVP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top