Downloading Image File
I am trying to download a jpg file…
In httpCompleted…
- {
- int count = bytes.count();
- ... save to file
- }
This mechanism works for non-image files but fails for images.
bytes.count() is zero even though reply->bytesAvailable() is the size of the image file.
Anyone seen this before?
Thanks
Simon
3 replies
It’s possible that no error is returned if a redirection occurred. Try to check content of bytes (qDebug() << bytes) or try to look for a redirection:
- QString forwardedUrl;
You must log in to post a reply. Not a member yet? Register here!



