11-05-2012 08:30 AM
HI,
i have one query what the difference between compress default-method ( deflate / gzip ), and if you can give an example when we can use deflate or gzip?
Thanks
11-07-2012 04:46 PM
HI Steven,
this may be useful:
Deflate is a compression method and compressed data format. It can be called a "raw" compressed data format, since there is no additional information in a deflate stream such as file names, lengths, check values, etc. There are not even magic bytes at the start so you can recognize it as a deflate stream. It is simply the encoding of a string of bytes. The deflate format is self-terminating, so when decoding, you know when to stop without having an input length.
gzip is a wrapper for the deflate format. It provides those missing items mentioned, such as magic bytes, file name, modification time, and check values with header and trailer bytes around a deflate stream. Currently gzip only allows the deflate compression method. Only one deflate stream can be present in a gzip stream, and so effectively can represent only one file.
---------------------
Cesar R
ANS Team
11-09-2012 01:32 AM
HI Cesar,
Thanks alot for the bove information, now i understood between them.
thanks,
Steven
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide