Skip to content

FastZip.CreateZip(Stream, ...) closes provided stream #78

Closed

Description

@gtbuchanan

FastZip.CreateZip(Stream, string, bool, string, string) uses a ZipOutputStream wrapper around the provided output stream without setting IsStreamOwner = false. This closes the external output stream.

https://github.com/icsharpcode/SharpZipLib/blob/master/src/Zip/FastZip.cs#L369

using ( outputStream_ = new ZipOutputStream(outputStream) ) {
    ...
}

Activity

  1. siddhsuper commented on Oct 9, 2015

    @siddhsuper

    Hi, I am still seeing this issue . The objectdisposed exception is coming when I use fastZip.CreateZip(outputstream. and when I try to use outptustream after that.Pls let me know if there is any fix for this

  2. self-assigned this
    on Apr 15, 2016
  3. added
    zip
    on Apr 15, 2016
  4. added and removed on Aug 14, 2016
  5. assigned and unassigned on Apr 22, 2020
  6. Numpsy commented on Aug 8, 2020

    @Numpsy
    Contributor

    does #455 count as a fix for this one?

  7. piksel commented on Aug 9, 2020

    @piksel
    Member

    Yeah, I'd say so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugzip

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions