I have validated that the string in the DB is valid Base64.
How can I read the string and render the image, I dont mind where in the
tiers this is done?
Thanks
Sane E
*** Sent via Developersdex http://www.developersdex.com ***
You might have to remove carriage returns
first. Attachments are created as Base64 strings with
carriage returns every 76 characters. Those are
not actually part of the Base64 string. (But if it's
in your database it may not have returns in the string.)
Once you get the bytes from the Base64 just write that
to disk with a "Put".
If the image is for display then the OP can use the PtrToPicture() call in the OLEPicture library on my site to go
directly from the decoded Base64 buffer into the picture, without having to go via the disk.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: ED...@mvps.org
WWW: Http://EDais.mvps.org/