Address: http://lxflfr.blog.163.com/blog/static/129119579200983004539908/
Zlib is a common compression library that provides a set of In-memory compression and decompression functions, and can detect the integrity of extracted data (integrity ). Zlib also supports reading and writing gzip (.gz) files. The following describes the two most useful functions --CompressAndUncompress.
Int compress (bytef * DEST, ulogfn * destlen, const bytef * Source, ulon
Function prototype:
Int uncompress (bytef * DEST, ulogfn * destlen, const bytef * Source, ulong sourcelen );
Function Description: uncompress
Function will
Source
Extract the buffer content
Dest
Buffer zone. Sourcelen
Yes
Source
The buffer size (in bytes ). Note that the second parameter of the Function
Destlen
Is an address transfer call. When calling a function, destlen
Indicates
Dest
Buffer
Zlib (http://zlib.net/) provides a simple and efficient in-memory data compression and decompression series of API functions, many applications will use this library, among them, compress and uncompress functions are the most basic and commonly used. However, although compress and uncompress functions are already very simple, they are still difficult to use. In fact, the final result is that some things are
Uncompress the about: blank in the IE Address Bar
[Abstract]
When you open a new ie window, the URL of IE is always about: blank. We know that the left side of ':' (colon) in the URL is the protocol, such as ftp: or http :. About is also a protocol. So what's the purpose? Don't underestimate it.
About: blank indicates an empty window on the right. If it is other content, it indicates the webpage content. For example:
The content of the new webpage is
Linux ubuntu12.04 decompress the Chinese zip file, decompress it, and garbled code to solve my computer environment: linux ubuntu12.04 has tried many methods, but the following one is OK on my computer. 1.zip file unzipping file name garbled: first install 7zip and convmv (if not installed before) in the command line to execute the installation command: sudo apt-get install p7zip-full convmv Step 2 false zipfile name y05document .zip, go to the directory where the zip file is located, and then r
Restore non-critical Oracle files, redo, temporary files, index files, and password files
The Application of Incremental backup is in the rediscovery stage and is no longer in the restore stage.
Learn about the database settings table:SQL> desc database_propertiesName Null? Type-----------------------------------------
parameter file: all parameter files are usually under $ORACLE _home/dbsSqlplus query statement: show parameter spfile;Network connection files: $ORACLE the _home/dbs/network/admin directoryControl file: SELECT * from V$controlfile;Data files: typically recorded in oracledata/instancesSelect file_name from Dba_data_files;Log f
[Python] python3 file operations: input files from the keyboard, open and close files, read and write files, rename and delete files, etc,1. Input from the keyboard
Python 2 has two built-in functions used to read data from standard input, which are by default from the keyboard. These two functions are: input () and ra
Extract files from zip files The code is as follows:Copy code /*Php extracts files from zip files*/$ Zip = new ZipArchive; If ($ zip-> open('jquery5-screen scroll corner code .zip ') === TRUE) {// The Chinese file name must use the ANSI-encoded file format$ Zip-> extracloud ('foldername'); // extrac
call bzip2
BZIP2 is a more compressed program,. bz2 end of the file is the result of bzip2 compression. The bzip2 relative to the decompression program is BUNZIP2. Use-j this parameter in tar to invoke gzip. Here are a few examples to illustrate:
# TAR-CJF all.tar.bz2 *.jpg
The command is to make all. jpg files into a tar package, and use bzip2 compression to generate a BZIP2 compressed package named all.tar.bz2
# TAR-XJF ALL.TAR.BZ2
This command i
Php reads zip files (delete files, extract files, and add files) instances. The following small series will show you several examples of php zip files. we can read the specified files in the zip package and delete the specified
Environment: WIN10 64-bit python3.7Single *.py file packagingPython GUI: program packaged as EXEFirst, install Pyinstaller, command pip install Pyinstaller, (uppercase P, knocking on the blackboard, to test)Second, packaging EXE steps:CMD enters the PY program project directory, executes the command: Pyinstaller-f-w--icon=xxx.ico main.py--noconsole. Where-F is the generation of a single EXE executable file, and-W represents the form program,--icon is to set the EXE's display icon, ' main.py ' is
By performing this lab, students would learn how to work with archive files.In this lab, you'll perform the following tasks:
Create archive files using tar with and without compression
Compress and uncompress files into a gzip archive file
Compress and uncompress f
files into a tar package and compress them with bzip2 to generate a bzip2 compressed package named All.Tar. bz2 #Tar-XJF all.Tar. bz2 This command unlocks the package generated above. 3tar call compress compress is also a compression program, but it seems that people who use compress are not as good as gzip and bzip2. The file at the end of Z is the result of bzip2 compression. The decompression procedure relative to compress is
of the file is the result of bzip2 compression. The bzip2 relative to the decompression program is BUNZIP2. Use-j this parameter in tar to invoke gzip. Here are a few examples to illustrate:
# TAR-CJF all.tar.bz2 *.jpgThe command is to make all. jpg files into a tar package, and use bzip2 compression to generate a BZIP2 compressed package named all.tar.bz2
# TAR-XJF ALL.TAR.BZ2This command is to untie the packets generated above.
3) Tar call compress
unbind the generated package.
With the above knowledge, you should be able to uncompress a variety of compressed files. The following is a summary of the compressed files in the TAR series:
1st pair of files ending with .tar
Tar-XF all.tar
2XX for the file ending with .gz
Gzip-D all.gzGunzip all.gz
32.16.tgzor .tar.gz
all.tar.bz2
# Tar-xjf all.tar.bz2This command unlocks the generated package.3) tar call Compress
Compress is also a compression program, but it seems that people who use compress are not as good as those who use gzip and Bzip2.More .. The file ending with Z is the result of Bzip2 compression. The decompress program relative to compress is uncompress.. Use the-Z parameter in tar to call compress. The following is an example:
# Tar-CZF all.tar. z *. jp
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.