Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Base64 Encoding and Decoding

From Wiki
Jump to: navigation, search
Article Metadata
Created: User:Kanu123 (29 Jun 2007)
Last edited: hamishwillee (27 Sep 2012)

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.

Header file

#include <imcvcodc.h>

MMP file

LIBRARY imut.lib

Their usage is similar and fairly simple:

void DoBase64Encoding(const TDesC8& aSourceData, TDes8& aEncodedData)
TImCodecB64 b64enc;

Source of the contribution on NewLC

This page was last modified on 27 September 2012, at 06:13.
42 page views in the last 30 days.