[
  {
    "Id": "648084",
    "ThreadId": "266668",
    "Html": "\r\n<div id=\"DescriptionPanel\">On every run output from ZipOutputStream increasing file size (no matter which compression level selected). and if i use same file again it will increase in size again.... don't know how to address this issues!?<br>\r\n<br>\r\n<br>\r\nbyte[] buffer = new byte[67108864];<br>\r\n<br>\r\nwhile (UnzipStream.Read(buffer, 0, buffer.Length) &gt; 0)<br>\r\n{<br>\r\nZipStream.Write(buffer, 0, buffer.Length);<br>\r\n}</div>\r\n<div></div>\r\n<div>&nbsp;Not sure how to address this issue since Cheeso mentioned this is not a bug any help with that?</div>\r\n<div></div>\r\n<div>&nbsp;http://dotnetzip.codeplex.com/workitem/13971</div>\r\n",
    "PostedDate": "2011-07-26T22:53:16.57-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "648242",
    "ThreadId": "266668",
    "Html": "<p>Cheeso mentioned that it is&nbsp;a question, and is better dealt with on the discussion forums, than in the bug database.&nbsp; If it does prove to be a bug you or I can create a workitem. but first we need to talk about it.</p>\r\n<p>You'll need to be more clear on what you are asking.&nbsp; \"on every run output from ZipOutputStream increasing file size\" - sounds to me&nbsp;like the ZOS is not compressing for you.&nbsp; &nbsp;What kind of data are you running through the stream?&nbsp; What does it mean when you say \"on every run\"?&nbsp; Does that mean, \"with any input\"? or \"with any file\"?&nbsp; or something else?&nbsp; Are you trying to re-compress already compressed data?</p>\r\n<p>In the code fragment you provided, what is the reason behind using a buffer of size 67108864? Why so large a buffer?&nbsp;&nbsp;&nbsp; Can you provide some background on what you are doing, exactly?&nbsp;</p>",
    "PostedDate": "2011-07-27T05:34:17.833-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "648420",
    "ThreadId": "266668",
    "Html": "<p>Thanks Cheese for looking into it!</p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Are you trying to re-compress already compressed data? Yes. Basically using output archive to open and re compress again through ionic zip  stream.</p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Can you provide some background on what you are doing, exactly? &nbsp;On current stage read zipped .csv files uncompress, compress and write back on disk with various buffer size from 1024 (*2) up to 64 MB.</p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Why so large a buffer? &nbsp;I have to decompress - compress files which could be ~ 40 GB originally, some logic should be applied to the data but for now I'm not using anything to see bare performance issues with different buffer settings.</p>\n<p>&nbsp;</p>\n<p>&nbsp; &nbsp;Thank you for helping!</p>\n<p>&nbsp;</p>",
    "PostedDate": "2011-07-27T10:45:25.797-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "648482",
    "ThreadId": "266668",
    "Html": "<p>Ah, ok I understand now that you are trying to compress data that is already compressed.&nbsp; This&nbsp;can and will lead to an increase in data size.</p>\r\n<p>That seems to settle the mystery.&nbsp; This is not a bug in DotNetZip code, this is an artifact of how compression works.</p>\r\n<p>I suggest you compress ONCE.&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-07-27T12:14:56.863-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "648491",
    "ThreadId": "266668",
    "Html": "<p>Thank you Cheeso! will do as you suggested.</p>",
    "PostedDate": "2011-07-27T12:30:37.16-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]