简体   繁体   中英

SharpZipLib implementation in SL4

是否可以在Silverlight 4.0中获得SharpZipLib实现的任何人

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

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);
 } 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM