[SOLVED] qCompress - converting to Gzip
I followed this excellent post on how to convert zlib to gzip using qCompress.
I'm doing this because I need to use a webservice that only accept "gzip or zip" format.
Weird thing is that the file still extract with the same size as the original, it only gives a warning that CRC File is broken. The file extension is also missing.
Trying to find a solution,
this won't answer your question, but there is a library, KArchive, that you could use for that. It's part of KDE Frameworks 5: http://api.kde.org/frameworks-api/frameworks5-apidocs/
If using an external library is not a problem, you could use KArchive
I found the problem, My CRC function was not setting the good one, will upload good code once it works.
Would be great to have KArchive bundled inside Qt if the license permit, I'm always up for using external library but I'm lazy checking licenses and doing all the plumbing.
Or maybe Qt could add a parameters to qCompress to specifiy the type of zip file you want? Just food for thoughts..