tags:

views:

218

answers:

2

Does any one where we can get SharpZipLib implementation in Silverlight 4.0

+1  A: 

There is a Silverlight implementation of SharpZipLib here. (Note uses GPLv2 Licence).

AnthonyWJones
+1  A: 

I'd highly recommend that you use the open source DotNetZip library and not SharpZipLib. DotNetZip is licensed under the Ms-PL and also easier to use than SharpZipLib.

Zipping for example is that easy:

 using (ZipFile zip = new ZipFile())
 {
     zip.AddEntry("MyFileName.png", null, pngStream);

     // Save to stream from SaveFileDialog
     zip.Save(stream);
 } 
Rene Schulte
Is there a Silverlight version of this library? Or do know you whether the source compiles when targeting Silverlight?
AnthonyWJones
+1 On DotNetZip being easier I use it a lot serverside, its very slick, especially the Stream handling. (I create a deep zoom compatible set of folders and files into a Zip file, DotNetZips Just-In-Time input streams are brilliant for that).
AnthonyWJones