ZIP file decompression inflating vs extracting
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Quiet Intelligence
--
Chapters
00:00 Zip File Decompression Inflating Vs Extracting
00:29 Accepted Answer Score 36
01:28 Thank you
--
Full question
https://superuser.com/questions/211291/z...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#compression #zip
#avk47
ACCEPTED ANSWER
Score 36
The ZIP format is foremost a container format which just stores files. 'Extracting' means to get the files out of the container. In addtion, to just store the files, each file can be 'handled' by a compression algorithm (or crypto .. or both .. it's more like a 'filter'). The default 'handler' for files is a compression algorithm called 'deflate'. The reverse of 'deflate' is 'inflate'.
A clever ZIP program can choose which compression (or encryption or both) to use upon each file, based upon the file type; not every filetype works good for compression. Example given: pictures are stored compressed most of the time, so it would be pointless trying to compress it down further. Text files on the other hand can be compressed greatly.
To sum it up:
- 'inflating' decompresses a file and 'extracts' it from the container
- 'extracting' just gets the file out of the container