Recently, in completing a project, you need to use the C + + language to read the contents of a specified file within a zip file. A lot of information on the Internet, in response to the problems encountered in the process, I also studied a bit, is
In practical applications, there are sometimes three options for processing zip compression and decompression:
Call rar.exe, unzip.exe, etc.
Use a ready-made Library
Full handwriting
First, although the task can be completed, the results cannot
The three concepts zlib, Gzip, and zip are indeed confusing:
1. Gzip
Gzip is a data format in UNIX.
Gzip is built on zlib and includes a layer. Some additional information is added at the header and end.
Gzip-tar.gz.
Gzip is a File compression
Zlib is a data compression library that is designed to handle simple data (regardless of the source of the data).
Gzip is a file compression tool (or the compressed file format produced by the compression tool) that is designed to work with
This article mainly describes the use of Java-related classes can be implemented to the file or folder compression.
Zlib is a data compression library that is designed to handle simple data (regardless of the source of the data).
7z is a new
Er, I have reviewed my previous articles today. The highest attention rate is the "self-painted radiobutton". Many people have sent messages to send source code, which is also lazy, now the source code connection has been added to the end of the
Scene:1. Unzip the file is usually used after downloading a zip file after decompression, or analysis of a file need to unzip the operation.2. Unzip the file, especially the zip file with folder, often the system does not provide such Win32 API, of
Miniz-single C source file deflate/inflate compression library with zlib-compatible API, ZIP Archive reading/writing, PNG writing-Google Project hosting
Miniz. C is a lossless, high performance data compression library in a single source file
In general, we have a lot of data transmission mechanisms to reduce the bandwidth pressure on the server. We will adopt a method to compress file transmission. in php, zlib can also achieve gzip compression output, the following is a summary of GZIP
PS; The Zlib library is older, like version 1.01e. Basic functions are similar.
Part1:
Using the complete library on the CodeProject, Daniel is really convenient and easy to find.
Address:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.