I am having problems encoding a file to base64.
I want to send a pdf by mail so i have to encode it to base64
When i do this:
Qt Code:
QString data; while (!file.atEnd()) { data += line.toBase64(); }To copy to clipboard, switch view to plain text mode
The string data seems to content all the information, but if i attached it into a mail i could not open the file
I hope you could help me
Sorry for my bad english
Bookmarks