std::istream to QByteArray
-
Many thanks for your quick help but seems to not work.
After many time I have found a solution.std::istream &StreamIn= Session.receiveResponse(Res); QByteArray QBAByteIn; char Buffer[128]; while (!StreamIn.eof()) { int BytesIn= StreamIn.read(Buffer, sizeof(Buffer)).gcount(); QBAByteIn.append(Buffer, BytesIn); }Regards.