Base64 Encoding and Decoding
It sometimes happen when writing connected application that you need to manipulate data in Base64, Quoted Printable or UU format. This is fairly easy with Symbian OS as three simple classes, all derivating from TImCodec, will do the job for you:
- TImCodecB64 for Base64,
- TImCodecQP} for Quoted-Printable,
- TImCodecUU for UU format.
Their usage is similar and fairly simple:
void DoBase64Encoding(const TDesC8& aSourceData, TDes8& aEncodedData)
Source of the contribution on NewLC