Questions tagged [sharpcompress]

SharpCompress is a compression library for .NET/Mono/Silverlight/WP7 that can unrar, un7zip, unzip, untar unbzip2 and ungzip with forward-only reading and file random access APIs.

SharpCompress is a compression library for .NET/Mono/Silverlight/WP7 that can unrar, un7zip, unzip, untar unbzip2 and ungzip with forward-only reading and file random access APIs. Write support for zip/tar/bzip2/gzip is implemented.

32 questions
1
vote
1 answer

Zip a Local StorageFolder in windows phone 8 using SharpCompress or Sytem.IO.Compression or

I'm working on Windows phone 8 store app and need to Zip a Local StorageFolder (with some images). Environment VS 2013. I learned that I can add references to SharpCompress & System.IO.Compression (but not .FileSystem) only. SharpZipLib & DotNetZip…
0
votes
0 answers

Sharpcompress write in Program Files folder

I'm trying to write some files in my folder which's inside Program Files folder... I'm getting error "Access denied" every time I try to write them... I tried to open the .exe (which makes the extraction) in Administrator mode and change folder…
0
votes
0 answers

How to get all files from archive folder? SharpCompress

I have directory named "data" in zip archive, in this directory I have other directories I need to get all directories from data and iterate through them and then get all files from this directories. How can I do this?
femto
  • 11
  • 1
  • 3
0
votes
0 answers

UWP SharpCompress Access Exception On Local Drives, Why?

I'm trying to use SharpCompress to read .rar files from my UWP application. It works fine on network shares from which I can read the archive no problem, but I get System.UnauthorizedAccessException on files anywhere on the local system including…
Ian Bland
  • 101
  • 1
0
votes
1 answer

Sharpcompress multi rar extract progress

I am building an app to extract from tar and rar archives. I can report progress from target based on the amount of rar containing in the target and as each one is extracted. In the rars there is one file spanning several volumes. I have used the…
0
votes
1 answer

Invalid RarHeader:16 in c# using SharpCompress Package

I am Facing Error when Extract a rar file in c# using sharpcompress package,i have tried in Nunrar,sevenzip extractor and so many packages,But facing that same error String filename = @"" + textBox8.Text; string ppath = @"" +…
0
votes
1 answer

Sharpcompress: keywords don't exist in context

I am trying to extract a .tgz file from my C# project, and I tried following the answers to this question: Decompress tar files using C# However, this code example does not work for me: using (Stream stream = File.OpenRead(tarPath)) { var reader…
Pablo
  • 1,373
  • 16
  • 36
0
votes
1 answer

Performance issues at extracting 7z file to a directory c#

I'm using SharpCompress library for extracting .7z files but it takes about 35 mins to extract 60mb .7z file. Is this normal or am I doing something wrong in terms of performance? .7z file is compressed in high compress mode and LZMA type. using…
Miral
  • 403
  • 5
  • 13
  • 30
0
votes
1 answer

How to delete single entry from ZIP archive using Sharpcompress .net

I'm trying to delete an entry from a ZIP archive, the code i've used is: using (var archiveOUT = ZipArchive.Open(tempFilepath, SharpCompress.Common.Options.KeepStreamsOpen, null)) { ZipArchiveEntry…
robrob
  • 1
  • 2
0
votes
1 answer

file stream exception on reading zip file (how to use using block)

I'm using the SharpCompress library (that's not the problem). My zips are either unprotected or are password protected (all with the same password). so I'm coding it like this: using(Stream stream = File.OpenRead(file)) { try { reader =…
Neil Walker
  • 6,400
  • 14
  • 57
  • 86
0
votes
1 answer

how to make a normal zip file for users in a web application using C#?

I have the following code to create a downloadable zip archive that works fine: ZipFile zip = new ZipFile(); zip.AlternateEncoding = Encoding.UTF8; zip.AlternateEncodingUsage = ZipOption.Always; zip.AddFiles(filePaths, false, "."); string zipName =…
0
votes
1 answer

ambiguous reference: SharpCompress and BouncyCastle for C#

I'm using BouncyCastle for C# in my Windows 8 / Windows Phone 8 app. Recently I had to include SharpCompression for Windows / Windows Phone 8, but now app can't be build due to ambiguous references to classes inside Org.BouncyCastle.Crypto. I've…
Tertium
  • 6,049
  • 3
  • 30
  • 51
0
votes
1 answer

How to remove/add and entry in zip file using SharpCompress in WinRT 8.1

as simple as my title says, haven't found any code example and I'm not able to infer the correct use for adding or removing an entry in z zip file. Basically I'm getting an error in "zip.SaveTo(..." as I don't know how to write this instruction. Any…
NestorArturo
  • 2,476
  • 1
  • 18
  • 21
0
votes
1 answer

How to use SharpCompress' BZip2Stream to compress a string?

I am trying to compress a string (str) using SharpCompress' BZip2Stream but unable to achieve it. Following is the code I have so far, public static string Compress(string str) { var data = Encoding.UTF8.GetBytes(str); using (MemoryStream…
user677607
0
votes
1 answer

Publish WinRT application with SharpCompress library

The current SharpCompress.WindowsStore.dll library published on Nuget is build in Debug mode. I got this error from the Windows Store App Certification Kit. Error Found: The debug configuration test detected the following errors: The binary…