I am using the following code to read the contents from the file using QHTTP.
Qt Code:
QHttp http; QByteArray buf; QByteArray pad; pad.resize(40); buf.append(pad); //buf +=file.read(segFileSize); 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.
Bookmarks