Hi, I've got a problem I don't know whats going on, it was working well but now it doesn't.
I want to decode a base64 binary file from QString or QByteArray and then save it, but QByteArray::fromBase64 reads only one (first) line of the file...
Could somebody tell me why cant read all and then decode it ?

I checked using some web decoder and it is encoded properly so It shouldn't cause any problems.

Encoded file: http://wklej.org/id/2269494/txt/

http://4img.eu/images/2016/04/11/Scr...4-11201728.png

Qt Code:
  1. void MainWindow::on_btnDecode_clicked()
  2. {
  3. QString input = ui->inputText->toPlainText();
  4.  
  5. QString output = QByteArray::fromBase64(input.toLatin1());
  6. ui->outputText->setText(output);
  7. }
To copy to clipboard, switch view to plain text mode 

The code is very simple as You can see, this is only test program to help solve decoding problem in my app.

Thank You for any help
Cheers,