Quantcast
Channel: sharpcompress Discussions Rss Feed
Viewing all 239 articles
Browse latest View live

New Post: WinRT / Metro support

$
0
0
Hi JuanBlanco,

any chance you could post an example to unzip a file with passowrd protection?

Thx in advance!

New Post: Extract rar with invalid password does not raise exception

$
0
0
Hello, when I extract a rar file with password everything works as expected if the password is ok. However, when the password is wrong the extraction runs without raising any exception and the files are extracted. Of course the files are corrupted. This is the code I am using:
string password = "wrongpass";
string inpath = @"D:\Test\File_with_pass.rar";
RarArchive rar = RarArchive.Open(inpath, SharpCompress.Common.Options.LookForHeader, password);
rar.WriteToDirectory(@"D:\Test\out");
rar.Dispose();
How can I avoid to create corrupted files and detect if the password was entered correctly?

New Post: Extract rar with invalid password does not raise exception

$
0
0
Please make an issue on the github site.

However, from what u recall, I'm not sure there is a straight forward way for me to throw an exception for a bad password.

New Post: WinRT / Metro support

$
0
0
Hi,

Is this working for WInRT yet?

New Post: Next Release??

$
0
0
When are you creating your next release? Last is more than a year and on the actual code, are some very interesting features. For example "RarArchive.Open" with password.

New Post: Suggestion Universal App

$
0
0
Hi,

I got the code from Github and changed the portable class to be Windows 8.1 and Windows Phone 8.1 and that works in my Universal App.

Maybe if you can, and have time you could commit it and enable a portable library to Universal App (Windows 8.1 and Windows Phone 8.1).

Thanks.
Regards,

New Post: How to decompress Multi part zip files.

$
0
0
have you implemented multip-part zip/sevenzip functionality ?

Any help is appriciated. Thanks in advance.

Thanks

Kalpesh

New Post: WinRT / Metro support

$
0
0
Could you finally please add some documentation how to get it to work on WindowsStore? There's no working Information at all.
Every single example I found is faulty.

There is no Reader.entry.FilePath or anything other Information in the assembly how to get the path or filename of the compressed files.
Secondly your example posted here (SaveFileAsyncReadingSync) is not working either as there's no Explanation from where "extractFileName" should come from.
Thirdly, the main reasons for the most would be to decrypt and/or encrypt zip files. So a example for that would be good too.

Could you please, please show actually working code? There should be more than enough users out there right now in the WindowsStore world which want to use sharpCompress. You must have tested it after porting - so this should be a matter of copy&paste I would think?

New Post: Extract rar with invalid password does not raise exception

$
0
0
Could you give me the complete code with headers in order to study the problem?

New Post: ProgressBar - writer

$
0
0
Is it possible to get a progress bar on creating archive.
                using (Stream stream = File.Create(sZipFile))
                {
                    archive.SaveTo(stream, CompressionType.LZMA);
                }
I want to display the progression to the user.


Thanks

New Post: ProgressBar - writer

$
0
0
Is it possible to get a progress bar on creating archive.
                using (Stream stream = File.Create(sZipFile))
                {
                    archive.SaveTo(stream, CompressionType.LZMA);
                }
I want to display the progression to the user.


Thanks

New Post: Time Series Compression with SharpCompress using DetlaCodec

$
0
0
Hi,
I just wanted to let users know that SharpCompress can easily be adapted for use in DeltaCodec for "frictionless" time series compression.

This allows a developer to directly encode and decode lists or arrays of any intrinsic data type.
For example,
var codec = SharpCompressBZip2DeltaCodec.Instance;
var bytes = codec.Encode(IList<T> list);
var listOut = codec.Decode<T>(bytes);
Custom codecs or codec methods can be added to handle arbitrarily complex data structures.

Differencing the time series improves the ratio significantly, and speed can be enhanced by encoding multiple blocks concurrently.
For example,
var bytes = codec.Encode(list, numBlocks: 4, level: CompressionLevel.Fastest);
I Hope others will find this useful.

bstabile

New Post: Great library!

$
0
0
how do you use sharpcompress to list entries in a compressed file to list view?
like in ziparchive where you use listview.items.add(entry.Name);
but "Name" cannot be used with SharpCompress library.
please help.

New Post: Targeting to Framework 4.0 and 4.5

$
0
0
Hi folks,

Has anyone tried to compile SharpCompress.3.5.csproj targeting to Framework 4.0 and 4.5 in VS2015? I have tried them but with errors:

Severity Code Description Project File Line
Error CS0675 Bitwise-or operator used on a sign-extended operand; consider casting to a smaller unsigned type first SharpCompress ...\sharpcompress_fcca5e95eafd\SharpCompress\Compressor\Deflate\DeflateManager.cs 670

and

Severity Code Description Project File Line
Error CS0675 Bitwise-or operator used on a sign-extended operand; consider casting to a smaller unsigned type first SharpCompress ...\sharpcompress_fcca5e95eafd\SharpCompress\Compressor\Deflate\DeflateManager.cs 682

Can you resolve this?

Cheers

New Post: ZIPX with JPEG

$
0
0
I need to extract zipx files which contains jpeg's. What I can see, that's at the moment not implemented. Is there a plan to implement it? Or can I implement it by my self. If yes, I would need some help. to introduce into the code.

New Post: ZIPX with JPEG

$
0
0
No plans I'm aware of.

Please use github and get the latest code. I'll be happy to answer all questions. https://github.com/adamhathcock/sharpcompress

Your best bet is to look at the tar code as it's the simplest to get an idea of how formats are done. I usually take implementations from other libraries and implement the pattern around them.

New Post: Self extracting exe

$
0
0
Hello,
We are using your product and would like to use it also for extracting and compressing self-extracting exe.
We have some questions regarding this feature:
  1. Do you support modifying an existing self extracting exe (not creating, only modifying)? If yes can you give me an example?
  2. Does the product support self extracting exe types: 7zip, winZip and Rar ?
  3. Do you have the ability to extract and compress the self extracting exe?

New Post: Using 0.12.1 with Xamarin, failing on System.Security.Cryptography.Primitives

$
0
0
Just created a new Xamarin.Android project in VS2015 and added SharpCompress from nuget. Got 0.12.1. Default app from template, did not add any code to reference SharpCompress. Compiled and got the following error:

Error Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Security.Cryptography.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'System.Security.Cryptography.Primitives.dll'
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute() GetUpdateFromUsb

Created a Xamarin Android project 3 days ago with version 0.11.6 of SharpCompress and it worked just fine.

Am I missing something? Should I be installing System.Security.Cryptography.Primitives from nuget or is something off?

New Post: How to detect if ,rar file is password protected without extracting it?

$
0
0
Hi, I am developing a small utility where I am insert many compressed files for processing. Now, I want to eliminate all the files that are password protected. I have been able to detect zip files, but not able to find any solution for rar files. Please provide me with this solution if it is possible in SharpCompress library.
Thanks,
Viewing all 239 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>