GZIP decompression എന്താണ്?
GZIP RFC 1952 define ചെയ്ത ഒരു lossless compression file format ആണ്. Decompression DEFLATE algorithm (RFC 1951) reverse ചെയ്യുന്നു — LZ77 references, Huffman-coded symbols വായിച്ച് ഒറിജിനൽ bytes കൃത്യമായി reconstruct ചെയ്യുന്നു.
GZIP decompression എങ്ങനെ പ്രവർത്തിക്കുന്നു?
ഇൻപുട്ട് native DecompressionStream('gzip') API ഉപയോഗിച്ച് ബ്രൗസറിൽ പൂർണ്ണമായും process ആകുന്നു. High-level steps:
- ടൂൾ ഇൻപുട്ട് ടെക്സ്റ്റ് ആണെങ്കിൽ Base64 അല്ലെങ്കിൽ hex ആയി parse ചെയ്യുന്നു, upload ചെയ്ത .gz ഫയലിൻ്റെ raw bytes വായിക്കുന്നു.
- 10-byte gzip header validate ചെയ്യുന്നു, DEFLATE payload identify ചെയ്യുന്നു, 8-byte footer (CRC32 + original-length-mod-2^32) verification-നായി അകലെ ഇടുന്നു.
- Bytes
gzipformat-ൽ configure ചെയ്തDecompressionStream-ൽ feed ചെയ്യുന്നു. - ബ്രൗസർ DEFLATE reverse ചെയ്യുന്നു: Huffman codes symbols-ലേക്ക് decode ചെയ്ത്, LZ77 back-references ഒറിജിനൽ byte stream ആക്കി expand ചെയ്യുന്നു.
- Stream recovered bytes-ൽ CRC32, length footer verify ചെയ്ത്, text form-ൽ UTF-8 ടെക്സ്റ്റ് ആയോ upload form-ൽ downloadable ഫയൽ ആയോ emit ചെയ്യുന്നു.
ഈ ടൂൾ ഉപയോഗിച്ച് decompress ചെയ്യേണ്ടതെന്തുകൊണ്ട്?
- Response inspect ചെയ്യൽ: GZIP-encoded HTTP body, CDN payload ഇവ binary noise ആയി render ആകുന്ന other tools ഇല്ലാതെ വായിക്കുക.
- Archive recover ചെയ്യൽ: extra software install ചെയ്യാതെ .gz log file, configuration dump, tarball component extract ചെയ്യുക.
- സ്വകാര്യത: decompression ബ്രൗസറിൽ തന്നെ നടക്കുന്നു. ഇൻപുട്ട് ഒരിക്കലും server-ൽ എത്തില്ല.
- Standards-compliant:
gzipCLI, HTTP server, Python, Node.js, Go, Java, Rust-ൽ ഭാഷ standard library ഉൽപ്പാദിപ്പിക്കുന്ന ഏതൊരു RFC 1952 stream-ഉം സ്വീകരിക്കുന്നു.
GZIP decompression-ൻ്റെ സാധാരണ ഉപയോഗങ്ങൾ എന്തെല്ലാം?
GZIP decompression വെബ് work, tooling ഉടനീളം കാണുന്നു:
- API debug: underlying JSON അല്ലെങ്കിൽ HTML കാണാൻ raw
Content-Encoding: gzipresponse body paste ചെയ്യൽ. - Log forensics: full extraction pipeline ഇല്ലാതെ rotated
.log.gzഫയൽ events grep ചെയ്യൽ. - Backup verify ചെയ്യൽ: rely ചെയ്യുന്നതിന് മുൻപ് another tool produce ചെയ്ത .gz archive cleanly decompress ആകുന്നോ confirm ചെയ്യൽ.
GZIP decompression ഉദാഹരണം എങ്ങനെ ഇരിക്കും?
H4sI ഉപയോഗിച്ച് തുടങ്ങുന്ന 200 byte Base64 string gzip header-ൻ്റെ canonical ചിഹ്നം ആണ് — magic bytes 1f 8b ആ ക്യാരക്ടറുകളിലേക്ക് encode ചെയ്യുന്നു. ആ string paste ചെയ്ത് DECOMPRESS അമർത്തിയാൽ whitespace, trailing newlines ഉൾപ്പടെ ഒറിജിനൽ ടെക്സ്റ്റ് byte for byte reproduce ആകുന്നു.
ഈ GZIP decompressor ഏതൊരു RFC 1952 ഇൻപുട്ടും സ്വീകരിക്കുന്നു, ഒറിജിനൽ bytes ബ്രൗസറിൽ നേരിട്ട് ഉൽപ്പാദിപ്പിക്കുന്നു. Page വിടാതെ ടെക്സ്റ്റ് അല്ലെങ്കിൽ ഫയൽ round-trip ചെയ്യാൻ GZIP Compressor-ഉമൊത്ത് ഈ ടൂൾ ഉപയോഗിക്കുക.