For a reason unknown to my understanding, when reading from http response into QByteArray. can anyone point me in the right direction? Is this a conversion issue?
here is the code snip:
For a reason unknown to my understanding, when reading from http response into QByteArray. can anyone point me in the right direction? Is this a conversion issue?
here is the code snip:
- AR
When these statements are executed? Are they in some slot? If yes, what signal triggers it?
Here is how I'm doing this...
Qt Code:
void snipit::somefunkyStuff() { connect(http, SIGNAL(readyRead(const QHttpResponseHeader&)), this, SLOT(readyReadCita(const QHttpResponseHeader&))); -- some more code to do the http->request() } { QByteArray ba; ba=http->readAll(); QString temp1=ba; }To copy to clipboard, switch view to plain text mode
- AR
Whats the loss ?? What do u expect and what do u get ??
also make sure wheter u are getting data in chunks or not. If yes have u handled code for chunk data ??
When you receive readyRead signal you must control the size of data available with QHttp::bytesAvailable()
You can return when bytes Available aren't sufficient for your computation
A camel can go 14 days without drink,
I can't!!!
Hello!
Thank you for your responses. I believe I understand what is wrong with my logic. Do you happen to have a code snippit which will help me understand the handling of response better?
- AR
Bookmarks