Jan 10, 2012 at 10:41 AM
Edited Jan 10, 2012 at 10:46 AM
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:
using (ZipFile zip = new ZipFile())
string files = Directory.GetFiles(@"MyDocuments\ProjectX");
// add all those files to the ProjectX folder in the zip file
zip.Comment = "This zip was created at " + System.DateTime.Now.ToString("G");
zip.MaxOutputSegmentSize = 4 * 1024 * 1024 * 1024; // 4Gb
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?
Thanks a lot
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...