I don't know what I should write. Instantiate a QBuffer, open it with ReadWrite permission, give it to QFtp and wait till QFtp is finished.