[Interest] PDF to QByteArray

Thiago Macieira thiago.macieira at intel.com
Fri Feb 28 04:49:19 CET 2014


Em sex 28 fev 2014, às 01:58:39, Marcelo Estanislau Geyer escreveu:
> So that they can understand, I need to put the contents of a pdf file into a
> QByteArray, as this QByteArray is used as an attachment in the email
> sending process.
> 
> I did a test with a postscript file (.ps file) and it worked perfectly. I
> only have this problem with pdf files. How can I read and properly store
> the content (binary) of a pdf file into a QByteArray?

Your code was right.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list