I started using DotNetZip in my application but I have problem when I want to use a zip file twice within my application. For example, first I read my zip file and display the content in my application.
using (ZipFile zip = ZipFile.Read(zipPath))
Then later, I want to extract the same zip file, therefore I use the same code above and read the zip file into 'zip'. But then I receive an OverflowException:
Zip File Error: Cannot read that as a ZipFileSystem.OverflowException: overflow while creating filename
at Ionic.Zip.ZipEntry.CopyHelper.AppendCopyToFileName(String f)
at Ionic.Zip.ZipEntry.ReadDirEntry(ZipFile zf, Dictionary`2 previouslySeen)
at Ionic.Zip.ZipFile.ReadCentralDirectory(ZipFile zf)
at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf) ; File
When I close the application and start again, I can do the first step again but not the second. This happens to me every time I start reading to a zip file the second time.
Any idea why I get this exception? Thanks in advance.