/ Published in: C++
decompress can be made similarly. Qt compression cannot handle folders, you have to manage this.
- /* compress files */
- QFile inFile("test.txt");
- QByteArray ba = inFile.readAll();
- QFile file("test.gz");
- QDataStream out(&file);
- out << qCompress(ba);
You need to login to post a comment.