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
4
votes
1 answer

Decompress a 7zip archive with multiple files & directories in Java

I want to decompress a 7zip/lzma archive with multiple files & directories in Java. I tried to use the official 7zip SDK, but I failed, as my programming skills are not that advanced for this subject. However I fonud some libraries which make the…
Wolkenjaeger
  • 908
  • 1
  • 10
  • 21
4
votes
1 answer

Python 2.7 pyLZMA works, Python 3.4 LZMA module does not

import sys import os import zlib try: import pylzma as lzma except ImportError: import lzma from io import StringIO import…
hedgehog90
  • 1,402
  • 19
  • 37
4
votes
4 answers

Get Maximum Compression from 7zip compression algorithm

I am trying to compress some of my large document files. But most of files are getting compresses by only 10% maximum. I am using 7zip Terminal Commands. 7z a filename.7z -m0=LZMA -mx=9 -mmt=on -aoa -mfb=64 filename.pptx Any suggestion on changing…
Shilpi Agrawal
  • 595
  • 3
  • 11
  • 26
4
votes
3 answers

How to resolve "Sevenzip: Error result (00000001) Incorrect function" using JCLcompression unit

I'm using JCL version 2.4.1.4571 with Delphi XE3 and have had no luck decompressing archives. I've downloaded the dll's from JEDI's site and also tried using the 7z.dll (32bit) from 7-zip.org but either way I get the same error when I try to…
Mike
  • 153
  • 3
  • 11
4
votes
2 answers

Using LZMA SDK in C++

I am trying to use LZMA SDK to compress a file in my program. I have download the SDK but I don't know how to use it. Can anyone tell me what steps I need to take to make this work? Any help would be highly appreciated I am almost a newbie to C and…
Milad
  • 4,901
  • 5
  • 32
  • 43
4
votes
2 answers

Compress/decompress string on .NET server that was encoded with lz-string.js on client

I am using the LZString.compressToBase64 function of lz-string.js and need to decompress/compress the data on the server side. The obvious solution seems to be lz_string_csharp but I am concerned about this statement: If you use just the regular…
CodeToad
  • 4,656
  • 6
  • 41
  • 53
4
votes
1 answer

How pip install pylzma on windows 7 x64 , python 2.7

I assumed this should be working out of the box, but ... i've pasted pip.log on pastbin the last few lines of error message is e:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG…
Shuman
  • 3,914
  • 8
  • 42
  • 65
4
votes
1 answer

C++ LZMA SDK: Uncompress function for LZMA2 compressed file

I am trying to create a function that uncompresses LZAM2 compressed data. I inspired myself from this tutorial which works great for LZMA and I tried to adapt it for LZMA2. I successfully created the compression function for LZMA2, but i have no…
Jacob Krieg
  • 2,834
  • 15
  • 68
  • 140
4
votes
3 answers

LZMA SDK decompress for iOS (xcode) using too much RAM

I am trying to use the LZMA SDK in an iPhone/iPad app, my starting point was the LZMA example project for iPhone provided by Mo Dejong, available here: https://github.com/jk/lzmaSDK Original was here: http://www.modejong.com/iOS/lzmaSDK.zip (I tried…
tradergordo
  • 57
  • 1
  • 7
4
votes
1 answer

How to compress a Folder uses lzma sdk?

http://www.7-zip.org/sdk.html I can uses it compress a file, but can not find function of compress a Folder
babaloveyou
  • 229
  • 2
  • 8
3
votes
0 answers

Removing null bytes from a file results in larger output after XZ compression

I am developing a custom file format consisting of a large number of integers. I'm using XZ to compress the data as it has the best compression ratio of all compression algorithms I've tested. All integers are stored as u32s in RAM, but they are all…
spaceface
  • 65
  • 1
  • 5
3
votes
0 answers

How to read binary files compressed with LZMA natively with Spark

I have raw binary files compressed with LZMA algorithm (xz extension), and I want to read them natively with Spark. I am testing this library: https://github.com/yongtang/hadoop-xz, and it seems that it works only for compressed text files, and I am…
Mehdi
  • 140
  • 10
3
votes
3 answers

LZMA Compression For VB6/VBA?

Looking to LZMA compress encrypted files in my Access 2000 application. Does anyone know the simplest way to do this in VB6/VBA or know of any source code?
Spidermain50
  • 689
  • 1
  • 12
  • 23
3
votes
1 answer

Getting java.io.EOFException while reading a SQLite file from temp directory

I am seeing an EOFException exception while reading a SQLite file from temp directory. Following is the code for reading the file. And also the exception is not seen always. Consider out of 50K files it is coming for 3 to 4 times. public static…
Arpan Das
  • 1,015
  • 3
  • 24
  • 57
3
votes
1 answer

How to fix "ModuleNotFoundError: No module named '_lzma' " issue in google cloud console

This is the error I am getting: Traceback (most recent call last): File "reader.py", line 5, in import pandas as pd File "/usr/local/lib/python3.7/site-packages/pandas/__init__.py", line 55, in from pandas.core.api…
Neha Pawar
  • 31
  • 1
  • 3