& nbsp; Base64 will be the input string by byte cut, get each byte corresponding to the binary value (if less than 8 bits, the high complement 0), and then these binary values in series, and then according to a group of 6-bit cut (because 2 ^ 6 = 64), the last group of less than 6 bits if the end of the complement 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 Europe on the computer to display the Chinese language normally (with the installation of the corresponding character libraries), but it may not be able to transmit the Chinese language normally, the conversion to Base64 will not have any problems. This is not a concern when converting to Base64.

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

Access to records: