can DotNetZip be used as a ZLIB wrapper ?

May 30, 2011 at 12:25 PM

Hi, i have files that have been compressed in VS6 C++ using zlib.lib

i'm trying to develop a web app that can decompress these files.

Can i  use DotNetZip dll as a wrapper for  unmanaged zlib dll ?

if so, can you point me to an example ?

thanks

Coordinator
May 31, 2011 at 7:15 PM

DotNetZip isn't a wrapper on unmanaged zlib.

Depending on how the content was compressed, you may be able to decompress it with DotNetZip.

Check the documentation, In particular see the doc on Ionic.Zlib.ZlibStream, Ionic.Zlib.DeflateStream, and Ionic.Zlib.GZipStream .

there are code examples in the doc pages for these classes.

Good luck.   The documentation is your friend.

 

May 31, 2011 at 8:13 PM

Hi,

thanks for your reply.

i managed to solve this by using   System.IO.Compression;