Skip to main content

All Questions

Tagged with
-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 ...
masteronin99's user avatar
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 ...
Anton Fernando's user avatar
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" ...
kees prince's user avatar
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 ...
Campbell Rowland's user avatar
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 ...
user avatar
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 ...
DynasticSponge's user avatar
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, ...
simon's user avatar
  • 73
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 ...
Irad K's user avatar
  • 877
1 vote
2 answers
2k views

Cannot decode base64+deflate data

I am lost with decoding the following base64 string nVJPb4IwFL/7KUjvAgUM8CIuZiabicsSNR68deXhWKBteGVx336FbJnz4MG+U997/...
Martin's user avatar
  • 175
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 ...
mrg95's user avatar
  • 2,410
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 ...
rooltex's user avatar
  • 132
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 ...
jdkuki's user avatar
  • 23
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 ...
fanbin's user avatar
  • 303
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 ...
Zohar81's user avatar
  • 4,984
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 ...
Diana's user avatar
  • 51

15 30 50 per page