How to read the contents of the QHTTP file in QString? I want to read the contents of the file in http and am using QHTTP for it. How to read it in QString or any other variables.
How to read the contents of the QHTTP file in QString? I want to read the contents of the file in http and am using QHTTP for it. How to read it in QString or any other variables.
Read the data into a QByteArray then, assuming the data is actually text, use either:
Qt Code:
// QByteArray ba // or one of the other variantsTo copy to clipboard, switch view to plain text mode
How to read the contents from QHTTP in a bytearray?
by using a method that returns a QByteArray. You'll find it in the documentation.
just to mention it the 134281246874th time:
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Bookmarks