Questions tagged [sevenzipsharp]

C# implementation of the 7-Zip library.

This is a C# library that allows .NET developers to use 7-Zip compression and decompression as well as the encryption that goes with it.

GitHub project page: squid-box/SevenZipSharp.

94 questions
1
vote
1 answer

Get volumes files from multi part rar file c#

I have multi-part RAR files in the same folder and I want to check if all parts of the RAR exist. I am using SharpCompress v0.24, here is my code: using (var archive = RarArchive.Open("D:/Ontology tool.part1.rar")) { foreach (RarVolume vol in…
Fath Bakri
  • 161
  • 1
  • 12
1
vote
2 answers

Why would the SevenZipSharp.Interop NuGet extract more than one file when trying to extract a single file?

Maybe it's just me and I'm doing something really wrong or maybe this is the expected results of the class but I fell like something is wrong with it... I have made the following test archive (there are also files in the folders but it shouldn't be…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
1
vote
0 answers

Extract 7z SFX files using C#

I have an exe file of type 7z SFX. A text file is compressed inside the exe file. How can I read the contents of text file inside exe in C#. I tried extracting using sevenzipsharp library but got an exception End of central directory record could…
chvc
  • 85
  • 1
  • 2
  • 7
1
vote
1 answer

Extract split rar file

I need to extract a splitted rar-file (r00, r01, r02,...) in C#. The only thing I've found that might be useful, is sevenzipsharp. I cannot find an example of what I'm trying to do though. Someone said "docs available at…
doglio
  • 11
  • 4
1
vote
1 answer

Decompress Stream to String using SevenZipSharp

I'd like to compress a string using SevenZipSharp and have cobbled together a C# console application (I'm new to C#) using the following code, (bits and pieces of which came from similar questions here on SO). The compress part seems to work…
SlowLearner
  • 3,086
  • 24
  • 54
1
vote
1 answer

Sevenzipsharp CompressStream throws Exception: Value cannot be null

I am trying out following code in order to compress and save a bitmap of a screenshot but get this error. I haven't tried using CompressFiles as I have to do it using memory stream. public void CompressAndSaveBitmap(Bitmap bitmap) { …
AbbasFaisal
  • 1,428
  • 2
  • 18
  • 21
1
vote
1 answer

SevenZipSharp: Events not firing

I have the following problem with SevenZipSharp. I want to compress a list(of String) containing filenames with full path. My code works fine, but only the last event(zip.CompressionFinished) is firing. Neither fFileCompressionStarted nor…
muffi
  • 366
  • 6
  • 18
1
vote
1 answer

Fast compression with SevenZipSharp

I am looking for a fast way to create a .zip archive of a directory that contains a lot of small files (e.g. 25.4 MB, 8 directories and 4505 files, but could be larger). When I use the standard 7zip Installation (via context menu) the compression…
tabina
  • 1,095
  • 1
  • 14
  • 37
1
vote
1 answer

7zipsharp extracting/decompressing stream to stream

I am using sevenzipsharp library: http://sevenzipsharp.codeplex.com/ I made a similar question in witch i was compressing and decompressing a stream at the "same time" using threads, witch i since have deleted due to realizing that, that cannot be…
meme
  • 597
  • 1
  • 10
  • 23
1
vote
1 answer

SevenZipSharp CompressStreamDictionary Error

Memorystreams smaller than about 16 MB are working well. But I get an error (HResult = -2146233088) when compressing a memory stream which size is over about 16MB. How can I get it to work? I use SevenZipSharp.dll Version…
M-Coder
  • 11
  • 1
  • 4
1
vote
0 answers

C# extracting by SevenZipSharp

I try to extract files from an archive, and I have exception 'System.ArgumentOutOfRangeException'. I think it can be problem in string, which contains the file name. var cpioExtractor = new SevenZipExtractor(archiveName); I try to input the path to…
Vlad
  • 256
  • 3
  • 14
1
vote
2 answers

How to extract files in my archive one by one using sevenzipsharp

I try using this Code : public void Extract(string SourceFile, string password) { SevenZipExtractor szip = new SevenZipExtractor(SourceFile, password); foreach (DataGridViewRow row in DGVFile.Rows) { string NameFile =…
sloqye
  • 101
  • 1
  • 3
  • 11
1
vote
0 answers

Issues while decompressing in-memory using SevenZipSharp library

I am decompressing .gz files in-memory using SevenZipSharp libary in c# and have encountered a strange behavior where the file size grew by 2-3 times, the decompression took significantly longer. More specifically, the avg size of .gz files are…
usr8
  • 11
  • 2
1
vote
1 answer

Using SevenZip to extract Zipped files within a zip file

I can conveniently extract all image files within the zip file, but now if there exist some zipped files within the zip file I want to extract everything. But when I try to extarct the zipped file within the zip file I get…
electricalbah
  • 2,227
  • 2
  • 22
  • 36
1
vote
1 answer

How to enable SevenZipSFX class in SevenZipSharp source?

I will appreciate so much an step-by-step guide of how to enable the SFX class inside the SevenZipSharp source as mentioned here: How to create a SFX ZIP with SevenZipSharp? ...To get the functionality to create SFX files using SevenZipSharp. The…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417