Comments (9)
from sharpziplib.
only the first file exists in the zip file.
You are adding the same file many times, using the same name. Most archivers would probably only display that as a single file entry.
Could you upload the output file to ArchiveDiag and post the URL to the resulting analysis here?
from sharpziplib.
@piksel Yes that just a sample, just let you know that I added multiple files
from sharpziplib.
Sorry, further test shows that this issue related to FlushAsync() on ZipOutputStream, here is the demo.
Make sure there are some files in your "~\Picures\Screenshot" folder
from sharpziplib.
In short, if CompressionMethod is not CompressionMethod.Stored or do not flush the ZipOutputStream after insert a new entry, this issue disappeared.
from sharpziplib.
I tried to reproduce your issue but it works correctly:
https://dotnetfiddle.net/IDUcxf
from sharpziplib.
I have tested in two different PCs using the demo I provided before. And the result is the same, please try use the demo application instead:
from sharpziplib.
Demo application SharpZipLibTest.zip will try zip your Screenshots folder in 4 different ways, output zip file will be placed on your desktop. Test1.zip is corrupted and Test2.zip & Test3.zip Test4.zip are correct. Please check code of the demo application
from sharpziplib.
@piksel Could you reproduce this issue using the demo application?
from sharpziplib.
Related Issues (20)
- Reading and writing in sync mode problems after update to 1.4 HOT 2
- Unpacking 7z archive failed. HOT 2
- Perf - Add buffer pooling where relevant
- Tar file is empty with a size of zero bytes for small tar entry sizes HOT 4
- Reading deflate file throw "Unexpected EOF" HOT 22
- SharpZipLib v1.4 introduced breaking change
- GetNextEntryAsync might use too large buffer HOT 3
- TAR archive has only 20kb when application high load
- xarchiver can't open tar files created with this library
- Symlink creation not possible with `TarArchive.WriteEntry()`. HOT 1
- .NET Framework 4.6.2 Support?
- Could not load file or assembly 'System.Threading.Tasks.Extensions' or one of its dependencies
- Original DateTime/DosTime value
- TestArchive doesn't handle invalid offsets correctly HOT 2
- It's not possible to tar files starting with "system" in the file name.
- Problem when create zip in network folder
- Add support for .NET Framework 4.6.1 to target frameworks.
- Creating incomplete zip when using zip64.
- Problem reading archives containg Zip64 files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpziplib.