qtqnetworkaccessmanagerqnetworkreplyqnetworkrequest

Qt - Some downloaded files have 0 byte


I'm currently struggling with a Qt app. I'm trying to download some files from Google Drive using QNetworkManager, QNetworkRequest and QNetworkReply.

First of all, my app works fine on a few computers (4 or 5 people tested it and didn't encounter any error). Each file which must be downloaded is effectively downloaded. (About 280 files are downloaded each time this way, and there is no problem.)

The issue is a member of my work team has only 0-byte files. Every single file which is downloaded over SSL doesn't have any content. The only one download on classic HTTP is correctly donwloaded.

Have you ever seen this bug?

All my "download" code comes from this single tutorial.

Edit : After a few tests, we found that the error was Error creating SSL context (). Thus, we tried to solve it by installing both needed libraries (ssleay32.dll and libeay32.dll) on the computer but it didn't work. Do you know if it needs some other libraries?


Solution

  • It was actually about missing libraries. I had to add to my folder :

    The point was, even on 64-bit systems, these libraries had to be for 32-bit systems because I compiled my applications for 32-bit systems...

    Moreover, msvcr120.dll was needed for some computers.