Giter Site home page Giter Site logo

sevenzipsharp's People

Contributors

chester89 avatar dialpawlowski avatar huhen avatar tomap avatar yashbajra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sevenzipsharp's Issues

Lzma2 - Compress Error

My code:
_zipEncode = new SevenZipCompressor(); _zipEncode.TempFolderPath = _workingDir; _zipEncode.ArchiveFormat = OutArchiveFormat.SevenZip; _zipEncode.CompressionMode = CompressionMode.Create; _zipEncode.CompressionMethod = CompressionMethod.**Lzma2**; _zipEncode.CompressionLevel = CompressionLevel.Ultra;

If I set the parameters (Lzma2) SevenZipSharp does not work.
Creates an archive file size 32 Baity and break operation.

Lzma working properly.

Add support for RAR v5.0

Currently RAR5 is not supported by SevenZipSharp, I had a look at #11 and thought it might be a quick thing to add, but the problem is that both RAR4 and RAR5 use the .rar extension, so to add RAR5 it seems you'd have to overwrite RAR4 (and I can't find any mention on whether or not you can open a RAR4 file the same way as a RAR5 file).

In theory what's needed is to change /SevenZip/Formats.cs:

  • Add/change the RAR5 GUID 23170f69-40c1-278a-1000-000110CC0000.
  • Add/change its signature: 52-61-72-21-1A-07-01-00.

But the file extension confuses me, you can't add two duplicate extensions to InExtensionFormats.

Taking over maintenance?

Hi @tomap,

Since it seems there's no rush to take on this repo, I could do it - admittedly I'm not very familiar with it, but hopefully it's not worse than having it abandoned.

I updated my fork and pushed my PR for RAR5 support to it.

Let me know what else you need.

CommonDispose in SevenZipExtractor

Line 763, 764 is,

_inStream.Dispose();
_inStream = null;

When I use this class, _inStream is set null, so the error is occured at above lines,
Why don't you check _instream is null?

FreeLibrary calls

Hello,

I have a feeling this is the only SevenZipSharp project with commits within the last months.

Why does the SevenZipSharp free the 7z.dll after many compress operations?

I think it's a huge performance issue when creating many archives in a row.

Best regards

What LGPL License version is to be used?

The readme reads that the project is under the LGPL v3.0.
But the license.txt is showing LGPL v2.1. It looks like the license.txt should be updated.
Which one is it meant to be?

Regards,
Kim

Neither CompressFileDictionary nor CompressStreamDictionary work

When I call one of these methods, ArgumentNullException arises.
Here's a stacktrace:
in System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken) in System.Threading.Monitor.Enter(Object obj, Boolean& lockTaken) in SevenZip.ArchiveUpdateCallback.IntEventArgsHandler(Object sender, IntEventArgs e) in C:\projects\sevenzipsharp\SevenZip\ArchiveUpdateCallback.cs:line 783 in SevenZip.InStreamWrapper.OnBytesRead(IntEventArgs e) in C:\projects\sevenzipsharp\SevenZip\StreamWrappers.cs:line 191 in SevenZip.InStreamWrapper.Read(Byte[] data, UInt32 size) in C:\projects\sevenzipsharp\SevenZip\StreamWrappers.cs:line 174

Hello, how to test if the compression package is damaged

I have a zip format compression package, use winrar software to open the prompt damage, but with SevenZipSharp can get the file information inside the compression package, and will not throw an exception, how to use SevenZipSharp to check whether the compression package is damaged? The test files are as follows:

test.zip

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.