& nbsp; Base64 will be input string by byte cut, get each byte corresponding to the binary value (if less than 8 bits, then the high complement 0), and then these binary values in series, and then according to the 6-bit set of cuts (because 2 ^ 6 = 64), the last set of less than 6 bits, then the end of the complement of 0. The binary value of each group will be converted to decimal, and then in the above-mentioned Each binary value is converted to decimal, and then in the above table to find the corresponding symbols and series is the result of Base64 encoding.

& nbsp; Base64 can be used for arbitrary data encoding of the underlying binary data, in order to apply to the transmission of ASCII characters can only be occasions. However, the most commonly used in the processing of text data transmission, such as in the MIME format e-mail, Base64 can be used to encode the contents of the mail, easy to transmit between computers in different languages and not messy code, pay attention to transmission rather than display, such as the use of utf-8 encoding can be used in Western European computers can normally display the Chinese language (with the installation of the corresponding character libraries), but it may not be able to properly transmit the Chinese language, the conversion to Base64 will not have any problems, but it will not be able to transmit the Chinese language, and it will not be able to transmit the Chinese language. Converting to Base64 will not be a problem.

Base64 encoding, if not specified, usually agreed that non-ASCII characters are encoded according to the UTF-8 character set.

Access to records: