I have a compressed string of bytes coming out of the database that I need to unzip to get the rtf file there. This is a requirement.
I tried using DotNetZip and it gave me a 50% success rate. Failed 50% gave me an unsupported encryption error (0x09, deflate64). So I think my problem is that part of the compressed line is compressed using deflate64, and some others are not. I do not know why.
I found that zlib, DeflateStream, and quite a few free packages do not support deflate64. SevenZipSharp and KarnaCompression (Info-zip to C # port) claim to support it, however I continue to get errors from using both libraries.
SevenZipSharp gives me a Data Error exception, for which google has no answer, and KarnaCompression gives me a random exception. "An attempt was made to download a program with the wrong format," which I cannot track to KarnaCompression.
Does anyone have a working example of using a library to decompress a deflate64 encoded file? Or can show me how to prove that my zip code is NOT a deflate64 encoded file, and something else?
Paying out $ 700 for an Xceed license is the latest option.
source
share