tomap / sevenzipsharp Goto Github PK
View Code? Open in Web Editor NEWFork of SevenZipSharp on CodePlex
License: Other
Fork of SevenZipSharp on CodePlex
License: Other
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.
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:
23170f69-40c1-278a-1000-000110CC0000
.52-61-72-21-1A-07-01-00
.But the file extension confuses me, you can't add two duplicate extensions to InExtensionFormats.
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.
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?
has many fixes ...
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
Just wanted to see this this fork has the ability to extract a password protected file from within a non-password protected archive? The current version of Sevenzipsharp does not appear to have this functionality when using (extractor.ExtractFile(extractor.ArchiveFileData[i].FileName, st).
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
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
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.