Is anyone able to open a Zip64 archive? I've created archives with both SharpZip and WinZip that are Zip64 -- archives where the total archive size is over 4GB but filled with smaller files, and archives where there are a few smaller files plus one large file over 4GB. WinZip is able to open these archives but SharpZip keeps throwing the same exception:
Unhandled Exception: ICSharpCode.SharpZipLib.Zip.ZipException: Invalid Zip64 Central directory signature at 4329B693
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries()
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor(String name)
at LargeZipList.Program.Main(String[] args)
I've simplified the archive opening and listing code as much as possible to hopefully eliminate a bone-headed mistake on my part:
static void Main(string[] args)
{
string myziparchive = args[0];
ZipFile zf = new ZipFile(myziparchive);
Console.WriteLine("opened zip " + myziparchive);
Console.WriteLine("- comment: " + zf.ZipFileComment);
Console.WriteLine("=====================================================");
for (int i = 0; i < zf.Count; i++)
{
ZipEntry entry = zf[i];
Console.WriteLine("----------------------------------------------------");
Console.WriteLine("entry " + i + ": " + entry.Name);
Console.WriteLine(" - size : " + entry.Size);
}
zf.Close();
}
This code works fine on a zip32 archive.
If anyone has been able to open/read/extract a Zip64 archive using SharpZip 0.85, could you please share how you did it?
Thanks,
-Steve