[
  {
    "Id": "836256",
    "ThreadId": "355753",
    "Html": "<p>Hi,</p>\n<p>While reviewing this library I noticed that when using <span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\">CompressionMethod</span></span></span></span><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">.Deflate with </span></span><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\">CompressionLevel</span></span></span></span><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">.BestCompression final file is still much bigger compared to WinZip or 7zip. By comparission:</span></span></p>\n<p><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">Initial file size 17,794,454 byte</span></span></p>\n<p><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">Windows Vista Send to Archive 597,558 bytes</span></span></p>\n<p><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">7zip using Zip/Deflate/Ultra 524,769 bytes</span></span></p>\n<p><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">DotNetZip 633,802 bytes, which is almost 21% biger than 7zip.</span></span></p>\n<div>\n<div>\n<div style=\"background-color: white; color: black;\">\n<pre><span style=\"color: blue;\">using</span> (ZipFile zip = <span style=\"color: blue;\">new</span> ZipFile())\r\n            {\r\n                zip.CompressionMethod = <span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\">CompressionMethod</span></span></span></span><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">.Deflate</span></span>;\r\n                zip.CompressionLevel = <span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\"><span style=\"font-family: Consolas; color: #2b91af; font-size: x-small;\">CompressionLevel</span></span></span></span><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">.BestCompression</span></span>;\r\n                ZipEntry file = zip.AddEntry(Path.GetFileName(fileName), fileUpload.FileContent);\r\n                zip.Save(Path.ChangeExtension(fileName, <span style=\"color: #a31515;\">\"zip\"</span>));\r\n            }</pre>\n</div>\n</div>\n</div>\n<p><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">﻿﻿﻿</span></span></p>\n<p><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">Maybe I am doing something wrong?</span></span></p>\n<p><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">Thanks</span></span></p>\n<p><span style=\"font-family: Consolas; font-size: x-small;\">&nbsp;</span></p>\n<p><span style=\"font-family: Consolas; font-size: x-small;\">&nbsp;</span></p>",
    "PostedDate": "2012-05-14T13:22:19.56-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "838306",
    "ThreadId": "355753",
    "Html": "<p>Hard to say. It depends on</p>\r\n<p>- the kind of file you are compressing</p>\r\n<p>- the compression used by those other tools.&nbsp; In some cases they don't use DEFLATE , but instead a different algorithm, which may offer better compression on some types of data.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2012-05-18T16:23:04.64-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "838311",
    "ThreadId": "355753",
    "Html": "<p>In case of 7-zip I di dpecify Deflat and not BZip2. If that is the case how can I achieve best compression compatible with Windows Explorer archive? Meaning so then Windows Explorer can open and unzip these files?</p>",
    "PostedDate": "2012-05-18T16:29:39.88-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]