[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:
> 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...
More information about the Interest