mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Extracting multipart rar for Universal app #51
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kristwa on GitHub (Jul 30, 2015).
Hi,
I'm testing out creating Universal apps for Windows 10 and I'm trying to extract multipart rar files. It starts out fine but I'm getting error: "Multi-part rar file is incomplete. Entry expects a new volume: filename.ext". Extracting file with WinRAR is no problem, so there should not be any issues with my archive.
Here is my code:
Any ideas as to what might be wrong?
@adamhathcock commented on GitHub (Jul 31, 2015):
The issue is that using the stream overload for open means that the code doesn't know where to look for the next volume file. Either give Open a path or you have to give all the volume streams at once and in order.
@kristwa commented on GitHub (Jul 31, 2015):
The only static method allowed on ArchiveFactory seems to be Open(Stream, Options) for Universal apps
@adamhathcock commented on GitHub (Jul 31, 2015):
Look at RarArchiveFactory
@kristwa commented on GitHub (Jul 31, 2015):
Got it working using RarArchive.Open(streams). Requires a lot more manual labor on my end if I'm going to create something that supports any kind of multi-rar, ordinary rar or zip though. But I guess that should be achievable. Thanks.
@adamhathcock commented on GitHub (Jul 31, 2015):
You could implement file stuff for UWP. I just didn't do it as making a portable library that doesn't access the file system directly was easier