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

Is it possible to parse pcap packets from buffer

I have a bunch of huge pcap files (> 10GB) that are compressed with lzma. I need to parse them on my machine, and I do not have enough space to uncompress them first. There are many libs that can stream lzma from file. The problem is on libpcap…
Pavel Davydov
  • 3,379
  • 3
  • 28
  • 41
3
votes
3 answers

Extracting file from LZMA archive with R

I am trying to extract a file from a LZMA archive downloaded from an API containing JSON files, using R. On my computer I can extract the file manually in Windows Explorer with no problems. Here's my code currently (API details removed): tempFile <-…
RDRR
  • 860
  • 13
  • 16
3
votes
1 answer

Compressing folder into 7z in java

I want to compress a folder into .7z extension using java. Iam trying using the below code but it is creating a new file and appending all the source files content into one single file. Can anyone please help me to be out of this…
Jagadeeswar
  • 311
  • 2
  • 5
  • 14
3
votes
1 answer

Enabling LZMA(2) (i.e. `.xz`) compression in log4j2

Current state of world Currently our RollingFileAppender in log4j2.xml uses Gzip compression: Goal I would like to switch to…
Birchlabs
  • 7,437
  • 5
  • 35
  • 54
3
votes
1 answer

Why size of a string compressed by LZMA-JS is approx. 10x bigger then before the compression

I'm trying to find a way to reduce size of BASE64 encoded images that I'm sending to the server. I found that question where LZMA is suggested solution. However when I check request size on the server I see that size of the uncompressed version is…
LJ Wadowski
  • 6,424
  • 11
  • 43
  • 76
3
votes
1 answer

How to pass multiple commands arguments in visual studio?

I am working on a compession/decompression project using the LZMA SDK. The main program contains some arguments that I must use to run the application To run it from the command line, I use : ./LzmaUtil.exe e input.elf output.elf I'm using VS…
3
votes
1 answer

Fastest way to measure compression ratio of a string in Python3

I want to estimate Kolmogorov complexity of short strings (about one word long) by compressing them with LZMA and taking the compression ratio. What's the most efficient way of doing it in Python3?
Superbest
  • 25,318
  • 14
  • 62
  • 134
3
votes
0 answers

error opening archive(7z) files in python when made by 7zip

I have been learning python got the basics down to get better I have been trying to create a program to open archive files, not create just open. I can easily create and open 7z files however when the archive is created with 7zip it does not open…
mag pie
  • 31
  • 3
3
votes
1 answer

Can you help with creating a zip archive with the LZMA (7zip) SDK?

I am trying to use the LZMA SDK to create a zip archive (either .zip or .7z format). I've downloaded and built the SDK and I just want to use the dll exports to compress or decompress a few files. When I use the LzamCompress method, it returns 0…
scottm
  • 27,829
  • 22
  • 107
  • 159
3
votes
1 answer

LZMA SDK Progress

In my application, I'm compressing ~400Mb of data with LZMA SDK. Naturally, this takes some time. Even after massive Googling, I wasn't able to find any information how to get live progress information of the compress-process. Is this done with some…
nhaa123
  • 9,570
  • 11
  • 42
  • 63
3
votes
0 answers

Is there support to compression or decompress .xz files in LZMA?

1) I want to write a decompression codec for hadoop which can decompress .xz files with lzma2. 2) I come to know that LZMA2 compression library supports .xz format. 3) But recently I came across a lzma codec for hadoop(in a facebook/hadoop codebase)…
samarth
  • 3,866
  • 7
  • 45
  • 60
2
votes
1 answer

Missing the lzma lib?

The following message means that Python has not been installed completely. If Yes! Do I have to install the 'lzma' extension? ModuleNotFoundError: No module name '_lzma' Warning: The Python lzma extension was not compiled. Missing the lzma lib?…
ArAsH
  • 122
  • 10
2
votes
1 answer

Python generated lzma file with missing uncompressed size

According to https://svn.python.org/projects/external/xz-5.0.3/doc/lzma-file-format.txt The lzma header should look something like this 1.1. Header +------------+----+----+----+----+--+--+--+--+--+--+--+--+ | Properties | Dictionary Size | …
2
votes
3 answers

Using LZMA SDK in C++

Can i use LZMA SDK in my application without using any dll libraries such as 7z.dll or 7za.dll so that my application's executable file should not have any dependencies? If it is impossible where can i download 7z.dll/7za.dll? I downloaded LZMA…
Vitaly
  • 597
  • 1
  • 5
  • 12
2
votes
1 answer

SZ_ERROR_DATA from LzmaDecode function (C lzma)

I have an array of numbers which i want to compress and store in a file then decompress and put data in a buffer. RAM->FILE compressing FILE->RAM decompressing I used LzmaEncode for compressing and then write compress buffer in a…
ZGC
  • 104
  • 7