[
  {
    "Id": "723009",
    "ThreadId": "285598",
    "Html": "<p>Hi I am trying to write a spanned file that is larger than 2Gb. Can you give me code sample for that? When I use:</p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (ZipFile zip = new ZipFile())<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string[] files = Directory.GetFiles(@\"MyDocuments\\ProjectX\");<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // add all those files to the ProjectX folder in the zip file<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.AddFiles(files, \"ProjectX\");<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Comment = \"This zip was created at \" + System.DateTime.Now.ToString(\"G\");<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.MaxOutputSegmentSize = 4 * 1024 * 1024 * 1024;&nbsp;&nbsp; // 4Gb<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Save(\"ProjextX.zip\");<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>\n<p>than MaxOutputSegmentSize is obviously flowing over. But I've seen somewhere else that it is possible to write larger files on a 64Bit OS (with Ionic zip). Please give a sample for that and let me what useful limits there are?</p>\n<p>&nbsp;</p>\n<p>Thanks a lot</p>\n<p>Ps.: I'd like to give the end-user a choice of whether he wants to use a 3, 3.5, or 4Gb (variable) span size. Is it possible to define this beyond 2Gb? Under 2Gb everything's working smoothly with the above code...</p>",
    "PostedDate": "2012-01-10T03:41:47.037-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "723411",
    "ThreadId": "285598",
    "Html": "<p>I think you need to enable Zip64 extensions.</p>\r\n<p><a href=\"http://cheeso.members.winisp.net/DNZHelp/html/fb037d37-57ab-87f3-28a1-ce5289c14188.htm\">http://cheeso.members.winisp.net/DNZHelp/html/fb037d37-57ab-87f3-28a1-ce5289c14188.htm</a></p>\r\n<p>I say \"I think\", because the zip64 limit is 4gb, not 2gb.&nbsp;</p>\r\n<p>You do&nbsp;not require a 64-bit OS to read or write zip64 archives using DotNetZip.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2012-01-10T16:06:36.657-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "723476",
    "ThreadId": "285598",
    "Html": "<p>Yes I have tried that too but I am still not able to specify a size of 3Gb because the MaxOutputSegmentSize parameter flows over (since it is an int).</p>\r\n<p>Maybe I am getting the limits all wrong. Can you specify more precisely what these limits are? I expected to be able to choose a spanning size between a few Mb and whatever the maximum spanning size happens to be (say 4Gb).</p>\r\n<p>&nbsp;</p>\r\n<p>In this post there is a statement that even larger files are no problem. Does this refer to the files being zipped (and not the zip container itself)?</p>\r\n<p>http://dotnetzip.codeplex.com/discussions/282800</p>\r\n<p>In case this refers to the zip container: How can I produce such large files?</p>\r\n<p>Thanks Dirk</p>",
    "PostedDate": "2012-01-10T22:20:15.52-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]