SharpZipLib
SharpZipLib copied to clipboard
I zip a directory, but a file which in zipped file has size 4,294,967,295
Steps to reproduce
- use ZipOutputStream to zip a directory
- dynamic create a LOG FILE to record the exceptions in zip process
- when all files done, put the LOG FILE into ZipOutputStream via a ZipEntry
Expected behavior
the zip file contains the LOG FILE and it can be opened
Actual behavior
the zip file contains the LOG FILE but is can not be opened , because it's size is 4,294,967,295
Version of SharpZipLib
0.86.0.518
Obtained from (place an x between the brackets for all that apply)
- [ ] Compiled from source
- branch: _______
- commit: _______
- [ ] Downloaded DLL from GitHub
- [ ] Downloaded DLL from SourceForge
- [ ] Downloaded DLL from _______
- [ ] DLL included as part of
- Package installed using:
- [x] NuGet
- [ ] MyGet
- [ ] Chocolatey
ps. My English is poor, thank you for your attention
The scenario seems a bit confusing, are you adding the log file that is actively being written to into the archive? That would certainly cause some issues.
Is the file on disk (before archiving) also the same size?
You can use software like glogg to view the contents of huge files.
I am closing this as I am not able to reproduce. I'll reopen it again if you still experience this problem.