Replacement for QFtp
It looks like QFtp is said to be buggy, unsupported and discontinued in Qt5.
My question is simple : what do I use to download binary files from a FTP server with login, using the same asynchronous process as QFtp ?
Hi and welcome to DevNet,
AFAIK the official class is "QNetworkAccessManager":http://qt-project.org/doc/qt-4.8/qnetworkaccessmanager.html
Does QNAM support binary download and ftp passwords ? I looked into it already but it doesn't look so...
i think QNAM only can download and upload files by FTP.
I think you either have to stick with QFtp or use an external ftp library.
I think uploads with passwords are possible if you already integrate it into the url.
Isn't "this":http://qt-project.org/doc/qt-4.8/qnetworkaccessmanager.html#authenticationRequired what you are looking for for authentication ?
And for the ftp download, IIRC using a QUrl with ftp://path_to_file/file, should work.
I'll explain what I'm doing. I'm using a FTP client to replicate (download only) a software tree with ~500 files, over 1GB in size, most of them binary. I have a FTP user and password so that the user can authenticate.
Can I use QNAM to do that ? Because no mention of "binary" or "ASCII" mode is made anywhere in the documentation and the FTP protocol requires the client to set this mode for each file before starting the download.
IFAIR, QNAM operates in binary mode, but I can't remember exactly where I saw that...
Okay, thanks, I'll give it a try.