Well I've tried both ZipArchive and the Writer Factory. Both can be unzipped by SharpCompress and Windows but not by Office. If PowerPoint is open when I point it to the .ppsx it offers to repair the file which it can do. If I use the file to launch PowerPoint it flat out refuses. I've been trying to research more on Office Open XML but the spec only mentions standard zip technology. I've come across one comment on the web stating ZIP64 or base 64 however. That might mean more to you than me. System.IO.Compression.ZipArchive does the job for a Metro app so I'm not sure what is different.
↧
New Post: Office compatible archives
↧
New Post: Office compatible archives
I don't support ZIP64 at the moment.
↧
↧
New Post: Office compatible archives
Well I'd say that's most likely it then. Thanks for your prompt feedback.
↧
New Post: GetEntries from a reader?
I would like to setup a progress bar during unzipping a zip and for updating the progressbar with the progress I need to have number of entries in a given zip file. The problem is that GetEntries method in ZipReader is internal in scope to the class and can not be call. This leaves me no other option but to iterate through all the entries in the zip file in order to get the count. Can someone please tell me if there is a more efficient way to do this?
↧
New Post: Multi part extraction
Hi,
I would like to know how I can extract multi part rar/zip archives. Searching for some time in the code or in the documentention/discussions I was not able to find a ways which is still possible. How can I pass the different streams of the archive parts to the "Archive" class?
Thanks,
Roland
I would like to know how I can extract multi part rar/zip archives. Searching for some time in the code or in the documentention/discussions I was not able to find a ways which is still possible. How can I pass the different streams of the archive parts to the "Archive" class?
Thanks,
Roland
↧
↧
New Post: Multi part extraction
I don't have support for multi-volume zips currently.
For the Archive interface, for multi-volume RARs, the files all need to be in the same directory. The file name is used to determine the order as per the RAR spec.
For the Reader interface, it expects the streams to be in order and fed to the Reader.
For the Archive interface, for multi-volume RARs, the files all need to be in the same directory. The file name is used to determine the order as per the RAR spec.
For the Reader interface, it expects the streams to be in order and fed to the Reader.
↧
New Post: GetEntries from a reader?
You should be using the ZipArchive class if you have the complete file. This ought to efficiently give you Entries via the Zip directory at the end of the file.
The Reader interface is intended for use on Streams that aren't seekable (e.g. NetworkStreams) so you don't know the end of the file and can't seek to parts.
The Reader interface is intended for use on Streams that aren't seekable (e.g. NetworkStreams) so you don't know the end of the file and can't seek to parts.
↧
New Post: Multi part extraction
At the moment I initialize the rar archive by using:
It will be nice, if you can give me an example for extraction a multi part rar archive.
Thanks,
Roland
PS: I am using the lib via WinRT with the WP7 build.
SharpCompress.Archive.Rar.RarArchive.Open(stream);
whereas stream is a stream to the file. How do I "feed" this class now with the other streams of the other parts? I did not see a function for this, and it can only be initilized by submitting a stream object.It will be nice, if you can give me an example for extraction a multi part rar archive.
Thanks,
Roland
PS: I am using the lib via WinRT with the WP7 build.
↧
New Post: Multi part extraction
If you've got files all named properly and in the same directory, then all you need to do is use the file path Open (RarArchive.Open(string) or RarArchive.Open(FileInfo)
Otherwise use RarArchive.Open(IEnumerable<Stream>) for Streams with the Streams in order. You can use an C# iterator to feed it as it moves through the IEnumerable lazily depending on how you access it.
For more details look at the tests:
https://sharpcompress.codeplex.com/SourceControl/changeset/view/f4817f9ce4ac#SharpCompress.Test/Rar/RarArchiveTests.cs
https://sharpcompress.codeplex.com/SourceControl/changeset/view/f4817f9ce4ac#SharpCompress.Test/Rar/RarReaderTests.cs
Otherwise use RarArchive.Open(IEnumerable<Stream>) for Streams with the Streams in order. You can use an C# iterator to feed it as it moves through the IEnumerable lazily depending on how you access it.
For more details look at the tests:
https://sharpcompress.codeplex.com/SourceControl/changeset/view/f4817f9ce4ac#SharpCompress.Test/Rar/RarArchiveTests.cs
https://sharpcompress.codeplex.com/SourceControl/changeset/view/f4817f9ce4ac#SharpCompress.Test/Rar/RarReaderTests.cs
↧
↧
New Post: GetEntries from a reader?
Thanks for the reply. I was going horribly wrong with the use of the appropriate class. ZipArchive was indeed what I was looking for. Probably, a few more examples in the documentation would be great! Thanks again for a good library.
↧
New Post: How to decompress Multi part zip files.
Hi,
I was able to unzip multipart rar files. My client is asking me to do same for .zip files. Is there anyway to unpack multipart zip files.
Any help is appriciated. Thanks in advance.
Thanks,
ravi
I was able to unzip multipart rar files. My client is asking me to do same for .zip files. Is there anyway to unpack multipart zip files.
Any help is appriciated. Thanks in advance.
Thanks,
ravi
↧
New Post: How to decompress Multi part zip files.
Sorry, multi-part zips currently aren't implemented. It's on my TODO list on the homepage.
It should be a relatively simple addition if you'd like to take this on.
Thanks.
It should be a relatively simple addition if you'd like to take this on.
Thanks.
↧
New Post: 7z extraction problem
Hello,
is it possible, that LZMA2 archives are no yet supported? Because I cannot extract those archives. SharpCompress does list the files in the archive, but is not able to extract it. The some behaviour can be seen while extracting a 7zip archive which does not use any compression but is only saved. Is this because of SharpCompress or is there a workarround?
Thanks,
FlashTek
EDIT: I added one of the archives and a screenshot of the settings.
is it possible, that LZMA2 archives are no yet supported? Because I cannot extract those archives. SharpCompress does list the files in the archive, but is not able to extract it. The some behaviour can be seen while extracting a 7zip archive which does not use any compression but is only saved. Is this because of SharpCompress or is there a workarround?
Thanks,
FlashTek
EDIT: I added one of the archives and a screenshot of the settings.
↧
↧
New Post: Compiling from source
I'm trying to compile from source to check out the sample code. It keeps asking me to enter a password when running the pfx file, what is the password?
I'm a C++ coder and new to C# and using DLLs but I have compiled and modified other C# sources/libraries with success and working samples.
For example, I'm getting a ReaderFactory not in context when trying out the api code under documentation.
Any ideas?
I'm a C++ coder and new to C# and using DLLs but I have compiled and modified other C# sources/libraries with success and working samples.
For example, I'm getting a ReaderFactory not in context when trying out the api code under documentation.
Any ideas?
↧
New Post: Compiling from source
For quick fix, I will just disable digital signature first. :)
↧
New Post: Compiling from source
You're not meant to know the PFX password as that's the "official" build. Disabling strong naming/removing the signing requirement in the build ought to allow building.
↧
New Post: Compiling from source
Hello Adam,
Ok sorry about that. Can you at least give me a complete simple code to work with the DLL download? just a noob here..
I'm trying to create a feature for an existing app to read files from zips or virtual folder, looks like this tool is a perfect fit. I've tried Dokan C# binding library (virtual folder approach) but results are slow and unstable/app crashes, the good side of it is they have full working code samples that I can compile and modify :-)
Ok sorry about that. Can you at least give me a complete simple code to work with the DLL download? just a noob here..
I'm trying to create a feature for an existing app to read files from zips or virtual folder, looks like this tool is a perfect fit. I've tried Dokan C# binding library (virtual folder approach) but results are slow and unstable/app crashes, the good side of it is they have full working code samples that I can compile and modify :-)
↧
↧
New Post: Wow! This library is awesome!
Just come across, since dotnetzip, and sharpziplib are dead.
Great work.
Great work.
↧
New Post: Compiling from source
I'm using vc2010 express .NET 4..
↧
New Post: Compiling from source
Sorry, this is a hobby project for me and I haven't had time to do all of the samples people want myself. All I can do is point to you to the unit tests that should have a lot of various working examples.
↧