Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Couple comments. </p> <ol> <li>Don't use the J# runtime. J# has been discontinued by Microsoft. Future support is questionable. Also, the entire J# runtime is a big nut to swallow when all you want is ZIP support.</li> <li>The GzipStream in System.IO.Compression, part of the .NET base class library since .NET 2.0, provides a stream interface for <a href="http://www.ietf.org/rfc1952.txt" rel="noreferrer">IETF RFC-1952</a> compression. It is ok for compression, though the compression ratio is not optimal and it will significantly expand data that has been previously compressed. This <a href="https://connect.microsoft.com/VisualStudio/feedback/details/93636/gzipstream-deflatestream-increase-file-size-on-compression" rel="noreferrer">bug was reported to Microsoft, but it's apparently been closed</a>. There is also a DeflateStream which is similar, but for <a href="http://www.ietf.org/rfc1951.txt" rel="noreferrer">RFC 1951</a>. There's a common misconception that GZipStream does zip files. Not true. <strong>Neither of these two do zip files.</strong> </li> <li>There's System.IO.Packaging.ZipPackage. It works, but is designed and intended primarily for packaging of MS Office 2007 (.docx, .xslx, and .pptx) files. It's unwieldy for zip files and doesn't support lots of ZIP features, like encryption.</li> <li>If you want a flexible way to create and read zip files in .NET you need a 3rd party library, currently. </li> </ol> <p><a href="http://DotNetZip.codeplex.com/" rel="noreferrer"><strong>DotNetZip</strong></a> is a good 3rd party option. Free, open source, actively maintained, simple to use, small, good feature set. It is shipped as a single assembly - it is fully managed code. Works on Compact Framework as well as on the regular .NET Framework. The pre-req is .NET 2.0. </p> <p>DotNetZip also includes a ZLIB library, with classes like {Zlib,GZip,Deflate}Stream. They are comparable to those built-in to .NET, but they include the ability to set Compression Levels, and at higher levels they compress much more effectively than the built-in classes. The ZlibStream does <a href="http://www.ietf.org/rfc1950.txt" rel="noreferrer">RFC 1950</a> compression. </p> <p>DotNetZip does ZIP64, passwords, AES encryption, streams, SFX, and Unicode. Everyone who uses it says it is much simpler to use than SharpZipLib. There's a good help file (.chm) and lots of code examples.</p> <p><a href="http://i27.tinypic.com/2nl8fwk.jpg" rel="noreferrer">DNZ CHM http://i27.tinypic.com/2nl8fwk.jpg</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload