Is there any way to read the content of a RAR file (support for multi-file RAR is a must)?
I don't want to extract the content to the disk, just read it like a stream.
Is there any way to read the content of a RAR file (support for multi-file RAR is a must)?
I don't want to extract the content to the disk, just read it like a stream.
Install NUnrar from nuget
If you want to directly access files stored in uncompressed rar files, then this answer might be of use.
Low level lib to work with 7z.dll (supports rar archives, incliding multi-part, works with .net streams):
C# (.net) interface for 7-Zip archive dlls
And more high-level lib based on the first one:
SevenZipSharp
Chilkat Rar library
More specific: link
My unrar project, http://nunrar.codeplex.com/ aims to be very .NETty and has streaming support. If you need something else, please suggest or give me a patch.
Another possibility is using including the rar command-line executable as application ressource and call it via System.Diagnostics.Process.
You may want to redirect the input/output stream.