| 1) Encoding/Decoding Strings I searched the web and found several GPL copies
of the C++ source code for BASE64 encode and decode.
I selected one that looked reasonable and set about adding it to a test
CW App.
This took me about 30 minutes to get working and I have posted a
download link to the zipped files below.
2) Encoding and Decoding Files Sample
Code/App:
(added 2010-08-28)
If you only need to encode and decode some files from disk, then the second
example in v4cwB64.zip will show you how.
This has a region to where you drag-n-drop the original file from Windows
Explorer. Then it will encode the file to a temp folder. Then you can decode
that encoded file back to an alternative name. If you compare the original
file and the recovered file, they should match byte for byte.
|