On Friday, 28 February 2014 11:02:33 CEST, Till Oliver Knoll wrote: > Or in just one line: > > QByteArray::toBase64() For the record, this is not enough -- the MIME standard imposes additional restrictions, one of them being line lengths, the other are proper headers, etc. Cheers, Jan -- Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/