Hi! I'm trying to open a zip file that is inside a reply from my server.
I have that zip inside a QBuffer and I'm trying to open it with QuaZip, but it's not working...
I want to do something like this:
QByteArray msg = reply->readAll();
QBuffer buffer(&msg);
buffer.open(QIODevice::WriteOnly);
buffer.write(msg.data(), msg.size());
buffer.seek(3);
buffer.close();
QString json_var = extractAll_fomVar(&buffer);
I can unzip a file in disk but I don't want to create that file... I want to use it in memory...
I have this error:
QuaZip::goToFirstFile(): ZIP is not open in mdUnzip mode
Invalid JSON...
How can I do that?




Reply With Quote


Bookmarks