mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-06 13:34:58 +00:00
Using a generic stream to create a zipped file with SharpCompress #189
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xavierpena on GitHub (Jun 1, 2017).
This is the only example that I've found that applies to writing to streams. I've tried to follow it and adapt it to my needs, but I am stuck at the exception it throws:
In case it helps, this is what I used (and it worked, but only in dotnet core) using the library
System.IO.Compression:@adamhathcock commented on GitHub (Jun 1, 2017):
Your code should do something like this:
2 things:
Not sure the above code works as I didn't actually run it. Try it out.
@xavierpena commented on GitHub (Jun 1, 2017):
It does! Thank you very much, that was it.
And thanks for providing an alternative to
System.IO.Compression, that has given me nightmares because of the net46 compatibility issues.@adamhathcock commented on GitHub (Jun 1, 2017):
SharpCompress has long been backwards compatible :)
Though, I've been breaking things like silverlight/WP7 as they're no longer supported by Microsoft anyway.