[Interest] PDF to QByteArray

Till Oliver Knoll till.oliver.knoll at gmail.com
Fri Feb 28 15:17:08 CET 2014

Am 28.02.2014 um 12:00 schrieb Jan Kundrát <jkt at flaska.net>:

> 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, ...

Off course ;)

The point to be taken away was really just this: IF you assemble the mail body yourself, you can't simply write binary data into it (you need to encode it, with all the bells and whistles defined in RFC 2045).

Somehow the lines from an earlier post...

> QByteArray ba_pdf = file.readAll();
> qDebug() << ba_pdf;

... made me suspicioud that this is what is being attempted here.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140228/b88c6a74/attachment.html>

More information about the Interest mailing list