I am using the following code to read the contents from the file using QHTTP.


Qt Code:
  1. QHttp http;
  2. pad.resize(40);
  3. buf.append(pad);
  4. //buf +=file.read(segFileSize);
  5. http.read(pad.data(),segFileSize);
To copy to clipboard, switch view to plain text mode 

How to read the data depending upon the size given in the Read() function.