Questions tagged [lzma]

Lempel–Ziv–Markov chain Algorithm is an compression algorithm which uses a dictionary compression. Is a default 7-zip algorithm.

Lempel–Ziv–Markov chain Algorithm is an compression algorithm which uses a dictionary compression. Is a default 7-zip algorithm.

More about LZMA at Wikipedia article on LZMA

233 questions
6
votes
2 answers

Python 2.7: Compressing data with the XZ format using the "lzma" module

I'm experimenting with the lzma module in Python 2.7.6 to see if I could create compressed files using the XZ format for a future project that will make use of it. My code used during the experiment was: import lzma as xz in_file =…
ki2ne
  • 78
  • 1
  • 1
  • 7
5
votes
1 answer

Mimic 7zip with python

I am using Python 3.6, and currently I subprocess out to my 7zip program to get the compression I need. subprocess.call('7z a -t7z -ms=off {0} *'.format(filename)) I know the zipfile class has ‘ZIP_LZMA’ compression, but the application I am passing…
JabberJabber
  • 341
  • 2
  • 17
5
votes
2 answers

C++ Boost and Lzma decompression

I am trying to decompress a .7z (or .xz or .lzma) file using boost library 1.67.0 on a Linux platform with the following code: vector readFromCompressedFile(string input_file_path, string output_file_path) { namespace io =…
user5911118
5
votes
1 answer

Issue with decoding LZMA compress zip file in java using apache common compress/org.tukaani.xz

Getting org.tukaani.xz.UnsupportedOptionsException: Uncompressed size is too big error while trying to decode LZMA compress xls file. Whereas non LZMA files getting unpack/decode without any issue. Both the cases same xls file being compressed. I am…
Raj
  • 71
  • 4
5
votes
2 answers

SharpCompress & LZMA2 7z archive - very slow extraction of specific file. Why? Alternatives?

I have a 7zip archive craeted with LZMA2 compression (compression level: ultra). The archive contains 1,749 files, which in total originally had a size of 661mb. The zipped file is 39mb in size. Now I'm trying to use C# to extract a tiny…
Bogey
  • 4,926
  • 4
  • 32
  • 57
5
votes
1 answer

Python LZMA : Compressed data ended before the end-of-stream marker was reached

I am using the built in lzma python to decode compressed chunk of data. Depending on the chunk of data, I get the following exception : Compressed data ended before the end-of-stream marker was reached The data is NOT corrupted. It can be…
Giuseppe Pes
  • 7,772
  • 3
  • 52
  • 90
5
votes
2 answers

How to get the uncompressed size of an LZMA2 file (.xz / liblzma)

I'm looking for a way to get the uncompressed stream size of an LZMA2 / .xz file compressed with the xz utility. I'm using liblzma from Windows/Linux for this task, so I guess I'm looking for some C/C++ API in liblzma that will do the trick.
damageboy
  • 2,097
  • 19
  • 34
5
votes
1 answer

How to use lzma2 in python code?

I know there is a module called pylzma. But it only support lzma, not lzma2. My current solution is using subprocess.call() to call 7z program. Is there a better way?
Huo
  • 798
  • 3
  • 12
  • 22
4
votes
1 answer

How do I create 7-Zip archives containing multiple files with .NET?

Here in this post it is mentioned how to Compress and Decompress files using LZMA SDK. Here is the Code : public static void CompressFileLZMA(string inFile, string outFile) { Int32 dictionary = 1 << 23; Int32 posStateBits = 2; Int32…
Writwick
  • 2,133
  • 6
  • 23
  • 54
4
votes
1 answer

Python LZMA Corrupt data error when trying to decompress

response = requests.get('http://content.warframe.com/PublicExport/index_en.txt.lzma') data = lzma.decompress(response.content) The error I am getting is: _lzma.LZMAError: Corrupt input data I don't think the data is corrupt because I can download…
Modo
  • 53
  • 5
4
votes
0 answers

How to extract xz files in FLutter?

I need to decompress xz files in my flutter app. I have tried unsuccessfully the lzma plugin. Is there any way to decompress xz files in my app?
lechevo
  • 41
  • 1
4
votes
1 answer

Compression issue when saving anR project

I solved the problem by moving R installation directory out of disk C. Thanks Joris for the great suggestions! I think the R core team should also take this as a bug and do something against the protecting mechanism of windows xp. Dear…
Marco
  • 505
  • 9
  • 18
4
votes
0 answers

LZMA SDK Appending files to existing archive C++

I've been looking for a solution to append files to an existing archive using the LZMA SDK. I can successfully create a new archive without issues, and understand the idea needed to update an existing archive, but am having trouble understanding how…
ImDevinC
  • 508
  • 1
  • 4
  • 18
4
votes
5 answers

LZMA Or 7zip in Delphi

Is there any Library in Delphi to handle LZMA (or 7zip)files including creating self extracting EXEs There are some sources code at 7zip.orgin (c++ java c#) but i want them in delphi BUT i want something which is stand alone (No DLLs)
Vibeeshan Mahadeva
  • 7,147
  • 8
  • 52
  • 102
4
votes
2 answers

Install R with shared library in OSX - liblzma library missing

Operating system: OSX El Capitan 10.11.6 (15G1004) R version: version 3.3.1 PostgreSQL 9.5.4 on x86_64-apple-darwin14.5.0, compiled by Apple LLVM version 7.0.0 (clang-700.1.76), 64-bit I would like to install PL/R on my local PostgreSQL. From…
Duccio A
  • 1,402
  • 13
  • 27
1 2
3
15 16