PDA

View Full Version : How to get the size of the file using QHTTP?



Gokulnathvc
7th June 2011, 08:34
How to get the size of the file using QHTTP? I am using QHTTP to download a file, but now i dont want to save the file in hard disk, instead i want to read it and store it in a buffer, so initially i want to know the size of the file, how to find the size of the file with the URL provided??

Gokulnathvc
8th June 2011, 11:39
I have found the solution,


QHttp http;
int size=http.readAll().size();