Hi,
I was wondering if anyone knows how to convert an array of bytes to an SQL CE 3 image type and vice versa.
I am using the SDF Signature control and I would like to store the signature as an Image. It needs to be an image so it can be synced with a desktop access 2003 database.
Cheers
Simon
I have got around this by changing the Image type to nText then converted the byte array to a base64 string and this works a treat.
Cheers
Simon.
|||Better way to do it would be to create memory stream from byte array from SQL and pass it to bitmap constructor:
Bitmap bmp = new Bitmap(new MemoryStream(byteArrayFromSqlCe));
No comments:
Post a Comment