All Questions
33
questions
-1
votes
1
answer
99
views
how to decompress the DEFLATE compressed data
I wanted to create the internet trend BadApple in c++ console. By extracting every frame from the BadApple video using ffmpeg in .png format and reading RGB pixel data from it. I already have a boiler ...
1
vote
1
answer
237
views
Is there way to block uncompress a compressed file using zip, gzip or zlib?
I want to give some sort of an 'offset' where the zlib will start its decompression from at init,
I have control over how file is compressed.
My question is, is there any block or boundary concepts in ...
1
vote
1
answer
785
views
zlib deflated samlrequest returns a "not deflated propper" by azure AD
i am using c++ zlib to deflate a XML string that gives the output:
<samlp:AuthnRequest
xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
ID="idnumber"
Version="2.0" ...
1
vote
1
answer
1k
views
How to find the end of a DEFLATE block
For self education purposes I am trying to create a program that will convert a png file into an array of RGBA values. However I am having a problem with decoding the IDAT sections which are encoded ...
1
vote
1
answer
873
views
ZLib GZIP Returning Z_BUF_ERROR(-5)
I am using the zlib library (compiled from src) to deflate/inflate gzip/zlib/raw bytes. I have created a wrapper class for decompressing and compressing (Compressor/Decompresser). I have also created ...
1
vote
1
answer
505
views
Am I packing bytes correctly for DEFLATE compression?
So, I know there are lots of libraries available to do DEFLATE compression. If I were working on a production product I would use something like zlib. But as a hobby, I'm implementing it myself to ...
0
votes
1
answer
137
views
How to write a Zip File with the "DFLT-X" Method
I am working on a Software which bundles and exports XML files as a zip. The compression method is "Deflate" (Code snipped included below).
These zip files are needed in another (older) Software, ...
3
votes
2
answers
2k
views
Decompressing gzip file to memory using libarchive
I'm trying to decompress programmatically a gzip file into memory and mimic the command gzip -d file.gz using libarchive project.
The file is actually taken from http response with the following ...
1
vote
2
answers
2k
views
Cannot decode base64+deflate data
I am lost with decoding the following base64 string
nVJPb4IwFL/7KUjvAgUM8CIuZiabicsSNR68deXhWKBteGVx336FbJnz4MG+U997/...
3
votes
1
answer
2k
views
Z_DATA_ERROR midway through inflate
I need to decompress some zlib compressed files found within a game's save data. I have no access to the game's source. Each file begins with 0x789C which tells me that they are indeed compressed with ...
1
vote
1
answer
1k
views
Zlib decompression c++
I'm working with zlib and have some problem with decompression. I try to decompress packets that come to my program, but only the first packet is decompessed correctly. For example :
//first ...
2
votes
0
answers
390
views
Java DeflaterInputStream() to ZlibInflation
I'm currently working on a project that involves compression and encryption in java, and decryption and inflation in C++.
Prior to what I was working on, we were creating compressed files using the ...
4
votes
3
answers
3k
views
C++/C Multiple threads to read gz file simultaneously
I am attempting to read a gzip-compressed file from multiple threads.
I was thinking this would significantly speed up decompression process as my gzread functions in multiple threads start from ...
0
votes
1
answer
827
views
Deflation compression algorithm for huge data streams
I've got C++ program that is getting data buffer from time to time, and should add it to existing compressed file.
I tried to make POC by reading 1k chunks from some file, passing them to compressed ...
2
votes
1
answer
2k
views
Deflate and inflate for PDF, using zlib C++
I am trying to implement the "zlib.h" deflate and inflate functions to compress and decompress streams in PDF-file.
Input: compressed stream from PDF-file. I implemented inflate function -- it's all ...