UseZip64WhenSaving Property

DotNetZip

Ionic Zip Library v1.9.1.6 UseZip64WhenSaving Property
ReferenceIonic.ZipZipFileUseZip64WhenSaving
Specify whether to use ZIP64 extensions when saving a zip archive.
Declaration Syntax
C# Visual Basic Visual C++
public Zip64Option UseZip64WhenSaving { get; set; }
Public Property UseZip64WhenSaving As Zip64Option
	Get
	Set
public:
property Zip64Option UseZip64WhenSaving {
	Zip64Option get ();
	void set (Zip64Option value);
}
Remarks

When creating a zip file, the default value for the property is Never. AsNecessary is safest, in the sense that you will not get an Exception if a pre-ZIP64 limit is exceeded.

You may set the property at any time before calling Save().

When reading a zip file via the Zipfile.Read() method, DotNetZip will properly read ZIP64-endowed zip archives, regardless of the value of this property. DotNetZip will always read ZIP64 archives. This property governs only whether DotNetZip will write them. Therefore, when updating archives, be careful about setting this property after reading an archive that may use ZIP64 extensions.

An interesting question is, if you have set this property to AsNecessary, and then successfully saved, does the resulting archive use ZIP64 extensions or not? To learn this, check the OutputUsedZip64 property, after calling Save().

Have you thought about donating?

See Also

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)