Open natiki opened 6 years ago
LZMA2 is not supported. Use false for the 2nd parameter in the LzmaStream constructor.
new LzmaStream(new LzmaEncoderProperties(), false, result)
Had the same problem a moment ago.
LZMA2 is supported - https://github.com/adamhathcock/sharpcompress/blob/master/FORMATS.md
The internals aren’t straight forward but looking at the tests can give you some help. I’m on vacation for a few weeks with only a phone so I can’t offer more at the moment
@adamhathcock Had a look at the tests and still not having any luck. When you are back from vacation would appreciate it, if you could have a look.
Using LZMA or LZMA2 directly requires creating a byte array of properties. I recognize this isn't easy to use but I haven't put a pretty interface on LzmaStream directly as it's intended to be used with an archive format.
Please read the readme for recommendations and links and not just blindly use "LZMA2" because people say it's always better
https://github.com/adamhathcock/sharpcompress#recommended-formats https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm#LZMA2_format
Thanks.... Building up a suite here for internal use.
Hi,
I am getting a "Not Implemented" exception when I attempt to instantiate a LzmaStream.