Compression guides

Verify a Raw DEFLATE Export in a Second Reader

·

Check what the receiving parser expects before sending compressed bytes. A raw DEFLATE stream is useful where the protocol already defines the surrounding format.

DEFLATE Compressor

Check the raw DEFLATE download against UTF-8

Choose Load worked example. The text repeats Sensor écho followed by a line break 64 times. At UTF-8 encoding the result shows 832 input bytes. Leave compression level at 6 and generate the raw stream.

Download deflate.bin. In Python, read its bytes and use zlib.decompress(data, -15). Check that the decoded text includes the accented é and that the bytes end with a line feed.

Open the DEFLATE Compressor worked exampleRFC 1951 DEFLATE compressed data format

Compare Base64, hex and decimal bytes

Choose Base64 and save deflate.bin.base64.txt. Decode the Base64 text and check that every decoded byte matches deflate.bin. The hex text represents each byte as two hexadecimal digits. The decimal list represents each byte as an integer from 0 to 255.

For a large stream, prepare and download the full encoded text. The interactive preview covers the first 1,536 raw bytes and indicates when it is clipped. The binary download always contains the full stream.

RFC 1951 DEFLATE compressed data formatRFC 4648 Base-N Data Encodings

Match the stream to the receiving protocol

To observe Stored blocks, repeat the example at level 0. The stream grows beyond 832 bytes because the block structure still needs headers. Raw DEFLATE decoding recovers the same text.

A zlib-wrapped stream adds framing and an Adler-32 checksum. GZIP adds its own wrapper and integrity fields. Use the format the destination specifies. Choose Exact file bytes when a source file must retain its original encoding or byte order mark.

RFC 1951 DEFLATE compressed data formatRFC 1950 zlib compressed data formatRFC 1952 GZIP file format

Common questions

Do I paste the Base64 string into a DEFLATE decoder?

Decode the Base64 representation into bytes first, or use deflate.bin directly. Then use the raw stream option in your decoder.

Will the tool save every byte for a large result?

Yes. The raw binary download contains the entire stream, and the prepared full encoding includes it as text.

Sources

Put it into practice.

Related guides