You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to extract a docx file (zipfile = docx-file) and compress it with modifications new. But when I opened the new compressed docx file without change (only decompress and then compress) then I get a corruption warning.
What I must do to decompress/compress with quazip a docx file successfully without warning of corruption?
It's hard to say anything without any details. Why exactly is it considered corrupted? Maybe checking the archive with some 3rd party software will yield some kind of a detailed error message, assuming something wrong with it in the first place. That's one idea. Another is that maybe Office has some requirements about ZIP versions or allowed features? QuaZIP uses rather old ZIP format version, with little advanced features, so I'd rather assume that something is missing than something unwanted is there.
I want to extract a docx file (zipfile = docx-file) and compress it with modifications new. But when I opened the new compressed docx file without change (only decompress and then compress) then I get a corruption warning.
What I must do to decompress/compress with quazip a docx file successfully without warning of corruption?
Here my methods:
void smaZip(QString zipfile , QString zipdir)
{
if(JlCompress::compressDir(zipfile, zipdir))
{
qDebug() << "compressing success!" << endl;
} else {
qDebug() << "compressing not successful!" << endl;
}
}
void smaUnZip(QString zipfile , QString zipdir)
{
QStringList list = JlCompress::extractDir(zipfile, zipdir);
}
Very thank you for your help.
Greetings,
Sven
The text was updated successfully, but these errors were encountered: