I am using a SqlDataReader and I am trying to read from a table I converted from an Access file, and is in SQL Server 2008.
The datatype is now a varbinary(max).
How do I convert this, so I can have it as System.Drawing.Image?
It is a Windows MetaFile and I want to convert it to a PNG or GIF and save it to the filesystem.
It appears this won't be correct as I get an error that it can't convert to Image.
System.Drawing.Image LocationImage = sdr.GetSqlBinary(2)
Thank you.