A
A
Anton Fedoryan2015-06-22 10:16:43
Python
Anton Fedoryan, 2015-06-22 10:16:43

How to unpack .zlib and LZMA data stream?

There is a binary file, which contains pictures, archives, and so on. Most interested in data compressed with zlib and LZMA.
I found the signatures with which this data begins. The problem is to determine the end of the stream of this data in order to unpack it correctly.
The zlib (LZMA) compression algorithms themselves are not as well described. as you would like. Maybe someone has already encountered this, or knows a program that can "feed" a stream of bytes, supposedly compressed by these algorithms?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
lega, 2015-06-22
@lega

The problem is to determine the end of the stream of this data in order to unpack it correctly.
For zlib, it seems that it is enough to know where the beginning is, everything after the end is ignored.

S
Sergey N, 2015-06-23
@Albibek

Here's what I found:
DESCRIPTION
The zlib-flate program is part of the qpdf package.
The zlib-flate program reads from standard input and writes to standard output either compressing or uncompressing its input using raw zlib compression.

I
Ilya112, 2019-12-18
@Ilya112

Try this program: aluigi.altervista.org/mytoolz.htm#offzip

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question