Skip to main content

All Questions

Tagged with
0 votes
0 answers
66 views

zlib inflate failing with errors like invalid distance too far back/ invalid block type/ invalid stored block lengths

Background: I am trying to deflate an in-memory buffer into a file and inflate it later for debugging. In this case when the logs are flowing at a faster rate (about every millisecond) I see failures ...
Ankitprasad Sharma's user avatar
0 votes
1 answer
261 views

Java Deflater for large set of random strings

I am using the Deflater class to try to compress a large set of random strings. My compression and decompression methods look like this: public static String compressAndEncodeBase64(String text) { ...
Adam G's user avatar
  • 77
0 votes
1 answer
517 views

How to get size of uncompressed gzip file using flate2

I want the uncompressed size of a gzipped file using rust crate flate2. How do I ask a GzDecoder or MultiGzDecoder for the uncompressed file size without reading the entire file? I'm hoping for a ...
JamesThomasMoon's user avatar
0 votes
1 answer
142 views

Code length of 15 not being hit in Zlib for 4KB Raw Data

I am verifying a Hardware Design block which does decompression (inflate). The decompressed data output should always be 4 KiB. As test data I am compressing chunks of 4 KiB data at a time using zlib'...
Bhanu 's user avatar
1 vote
2 answers
818 views

Java inflate exception on raw data

I was trying to decode the JWT payload in java but this payload is compressed/deflated "zip": "DEF" java.util.zip.DataFormatException: incorrect header check private static byte[]...
Rohit Sharma's user avatar
1 vote
1 answer
8k views

Java.util.zip.DataFormatException: incorrect header check

First post, usually I find what Im looking for in other threads but not this time: Im using javas Deflater and Inflater to compress/ decompress some data I send between a server and client application ...
JakobSailer's user avatar
0 votes
1 answer
284 views

Why does the PNG specification prohibit having zlib-compressed data with a preset dictionary?

For PNG compression method 0, the zlib compression method/flags code shall specify method code 8 (deflate compression) and an LZ77 window size of not more than 32768 bytes. The zlib compression method ...
Константин Ван's user avatar
0 votes
1 answer
114 views

Is it always okay to Inflate zlib-wrapped data with the windowBits of 15?

If the zlib-wrapped data to Inflate has, in its zlib header, CINFO (which determines the LZ77 window size) that is other than 7 (the maximum valid), is it okay to Inflate it with the windowBits of 15 (...
Константин Ван's user avatar
0 votes
2 answers
291 views

Dynamic Huffman: Bit Packing Clarity

I was just wondering if there are any good examples of Dynamic Huffman bit-packing. I don't understand the RFC material that well regarding bit-packing. I found a lot of great examples for Static ...
Rudy Montoya's user avatar
0 votes
1 answer
310 views

Inflate decompression operation success without processing complete compressed data

I am using Software Inflate methods ( Raw deflate method and not GZIP/ZLIB variants )for decompression operations. Strangely, I noticed the following obseravations 1.) When I pass in a single ...
user2618994's user avatar
1 vote
0 answers
282 views

could functions compress() / compress2() from zlib be parallelized without breaking serial inflate()

I am trying to parallelize compression calls from zlib (compress / compress2 functions), where data to be compressed and output buffer is available at call time. For help I am following the code of ...
owaisarain's user avatar
0 votes
1 answer
764 views

how to decompress data in php and the data which use pako.deflate from js

I use pako.deflate to compress data in javascript, like this: js file: const params = [{id: 5, name: '张三', list: [{code: '10010', type: 'media'}]},{id: 6, name: '李四', list: [{code: '20010', type: '...
serenas's user avatar
  • 137
0 votes
2 answers
643 views

Equivalent Inflate for Deflate function in Java

I have a function for decompression in Java. I want same equivalent function for compression. Right now my deflate function gives altogether different output. Functions are as below: public ...
Hungry's user avatar
  • 49
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
0 votes
1 answer
1k views

How to use Deflater and Inflater on large files in java?

I want to use Deflater and Inflater (NOT DeflaterOutputStream and InflaterInputStream) to compress files. The problem is that deflater stops working after mentioned buffer size in this case is 1024. I ...
pebble's user avatar
  • 331

15 30 50 per page