Giter Club home page Giter Club logo

Comments (9)

SourceproStudio avatar SourceproStudio commented on July 18, 2024

from sharpziplib.

piksel avatar piksel commented on July 18, 2024

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.

zhuxb711 avatar zhuxb711 commented on July 18, 2024

@piksel Yes that just a sample, just let you know that I added multiple files

from sharpziplib.

zhuxb711 avatar zhuxb711 commented on July 18, 2024

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

SharpZipLibTest.zip

from sharpziplib.

zhuxb711 avatar zhuxb711 commented on July 18, 2024

In short, if CompressionMethod is not CompressionMethod.Stored or do not flush the ZipOutputStream after insert a new entry, this issue disappeared.

from sharpziplib.

piksel avatar piksel commented on July 18, 2024

I tried to reproduce your issue but it works correctly:
https://dotnetfiddle.net/IDUcxf

from sharpziplib.

zhuxb711 avatar zhuxb711 commented on July 18, 2024

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:
image

from sharpziplib.

zhuxb711 avatar zhuxb711 commented on July 18, 2024

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.

zhuxb711 avatar zhuxb711 commented on July 18, 2024

@piksel Could you reproduce this issue using the demo application?

from sharpziplib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.