Andrew Stopford's Weblog

@poobah

News

Articles

Family

Old Blogs

ZLib compression in .NET

While hunting arounding for an implementation of Zlib (namely RFC1950 and RFC1951) I have found for the second time something present in Java but not in .NET. It does however seem that its possible with Sharp Zip and this post indicates its also possible using J# (more here). Not confirmed if Sharp Zip meets the RFC requirements, prehaps someone who knows more on the subject than me could confirm it?
Posted: Oct 31 2004, 12:14 AM by astopford | with 9 comment(s)
Filed under:

Comments

Scott Galloway said:

Good news is that compression is is v.next of .NET. So far as I am aware SharpZipLib is fully compliant with the requisite RFCs (being a port of the Java implementations of these libraries which certainly were...)
# October 30, 2004 7:33 PM

Jesse Ezell said:

I use the SharpZipLib lib in SwfSource.NET for ZLib compression. It works quite well and isn't that difficult. The hardest part was locating the proper classes, they are nested somewhere inside the Zip namespace, which is a little confusing, since you would expect a ZLib namespace or something.
# October 31, 2004 1:56 PM

Andrew Stopford said:

Thanks for the comments. As much I am aware ZLib will be in ASp.NET and will be included in a set of FTP classes for Whidby. But a set of namepaces for compression (such as Zlib) in Whidby I can't find any referance to.

Jesse if you could let me know what those classes are that would be really great.
# October 31, 2004 2:20 PM

Jesse Ezell said:

InflaterInputStream and DeflaterOutputStream are what you are looking for. They are found at ICSharpCode.SharpZipLib.Zip.Compression.Streams
# November 1, 2004 12:23 AM

John Hardin said:

Is the license compatible with use in a closed-source app? (in other words, is it LGPL or GPL?)
# November 28, 2004 4:59 PM

John Hardin said:

Duh. Read the links first.

Ignore me.
# November 28, 2004 5:00 PM

TrackBack said:

# January 26, 2005 5:33 AM

Kevin said:

ZLIB for .NET is available for download here:

http://www.componentace.com/zlib_.NET.htm

The license is BSD.

# June 29, 2006 3:00 AM

cheeso said:

DotNetZip includes a ZlibStream class for Zlib compression, as well as a DeflateStream class that replaces the built-in System.IO.Compression.DeflateStream with a more effective, efficient version.

MS-PL licensed.

# February 17, 2009 2:56 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)