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
0 answers

SevenZipSharp - Write stream on the fly?

Is it possible to write the extraction output from SevenZipSharp to file on the fly rather than to memory and then to file? The reason I am writing to a stream rather than directly to a file is to check a Byte at a specific location (to determine…
madlan
  • 1,387
  • 10
  • 34
  • 63
1
vote
1 answer

compressing the file using SevenZipSharp.dll

I want to compress and move the file using vb.net and SevenZipSharp.dll c:\Backup\FULLBackup.bak -> c:\Archive\20130322.7z I added a reference SevenZipSharp.dll Imports SevenZip …
user2199317
  • 11
  • 1
  • 3
1
vote
2 answers

Excluding files with SevenZipSharp in Code

I'm currently on a little project where I have to define several paths that need to be compressed into one single zip-file. Now the following case: One of those paths is a directory, which should be compressed recursively (including all files and…
COBRA.cH
  • 149
  • 1
  • 11
1
vote
1 answer

SevenZipSharp: Aborting In ProgressCompression

Using SevenZipSharp wrapper has anyone succeeded in aborting an in-progress compression? I used: FileCompressionStarted(ByVal sender As Object, ByVal e As SevenZip.FileNameEventArgs) to see some activity and tried: e.cancel = true but nothing…
user1797147
  • 915
  • 3
  • 14
  • 33
1
vote
1 answer

Unzip and unrar to MemoryStream

My app loads RAR/ZIP archives that contain a large number of images and displays a thumbnail in a Listbox. I'm using SevenZipSharp at the moment. Afaik it only supports dumping individual files to disk - which I'll have to do for each image to get a…
1
vote
0 answers

Listing files from tar.gz and .vhd presents bad information

Listing files using sevenzipsharp from tar.gz and .vhd files presents bad information. There is thousand files but it presents only one with name represented as [no name]. Try listing http://wordpress.org/latest.tar.gz and see for your self. This…
Ravi Patel
  • 2,136
  • 3
  • 32
  • 48
1
vote
0 answers

How to pass sfx settings to the SevenZipSfx class

Does anyone know how to pass the sfx settings for the SevenZipSfx class located at http://sevenzipsharp.codeplex.com/. I need to specify what file to run, etc. I just took one of the samples e.g ;!@Install@!UTF-8! RunProgram="setup.exe…
vince anon
  • 73
  • 1
  • 8
0
votes
0 answers

LZMA Compression options in C#

I need to get these options for LZMA in Python: def lzma_compression(input): return lzma.compress( input, format=lzma.FORMAT_RAW, filters=[ { 'id': lzma.FILTER_LZMA1, 'lc': 3, …
popcorn
  • 388
  • 1
  • 7
  • 28
0
votes
0 answers

How to Decompress memorystream using SevenZip C#

I'm using the below code to compress the stream using SevenZip, and it produces an output which I write back into filesystem. private static byte[] Compress(byte[] input) { var inputStream = new MemoryStream(input); var outputStream = new…
Aryan
  • 374
  • 1
  • 2
  • 14
0
votes
1 answer

Problem with SevenZipSharp. 7z.dll library not found even path to lib defined

I'm creating ASP.NET Web Application. I need in it to extract some '7z' files. My code: SevenZipExtractor.SetLibraryPath(@"\7z.dll"); var zipExtractor = new SevenZipExtractor(zipPath); …
Mr Sokol
  • 1
  • 3
0
votes
1 answer

How to skip ZIP64 format while zipping file above 4GB size in c#

Here I am trying to create zip file using .net 4.5 version which are having size greater than 4 GB. File format created as ZIP64. After that there is one more program written in java which will unzip and process. But java code is throwing error like…
sainath sagar
  • 499
  • 2
  • 10
  • 28
0
votes
1 answer

SquidBox SevenZipSharp creates unnamed folder when creating zip

I try to zip three files which I place in my temporary files directory (%temp%). When zipping them with SevenZipSharp I get a zip file with an unnamed folder in it. Within this folder I have my three files but I need the files to be in the root of…
Bongo
  • 2,933
  • 5
  • 36
  • 67
0
votes
1 answer

Relocating dependencies for my application throws System.IO.FileNotFoundException

I'm trying to clean up my Release folder so dependency files have some type of organization to them. My goal in this case is to contain all the dependencies I need for my compression module into a single folder. For this first part of my new class…
0
votes
1 answer

SevenZipSharp ExtractARchive decided wrong format

I am using sevenzipsharp and I have a lot of archives that are msi, rar, iso and more formats that ExtractArchive decided it is TAR and because of that failed to extract them. The archives can be extracted via the 7zip gui. So I am sure the archives…
Steve JZ
  • 23
  • 4
0
votes
0 answers

Unable to extract 7z archive containing EXE/DLL file using SevenZipsharp

Unable to extract using .ExtractArchive(pathname) method, for .EXE/.DLL Files, using sevenZipSharp dll (https://archive.codeplex.com/?p=sevenzipsharp), official 7zip.exe can extract same "EXE/DLL" files. .ExtractArchive(pathname) works fine with…
IT researcher
  • 3,274
  • 17
  • 79
  • 143