- 1、本文档共16页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
base64转图片(外国英语资料)
base64转图片(国外英文资料)
Why use base64-encoded photo information
Base64 is one of the most common coding methods for transmitting 8Bit bytes of code on the web. Base64 is not primarily encrypted, but its main purpose is to convert some binary Numbers into normal characters for network transmission. Because some binary characters belong to the control character in the transport protocol, they cannot be transferred directly. The most common USES are the transcoding of E-mail or WebService attachments.
2. The base64 encoding definition
The current Internet E-mail standard, the simple mail delivery protocol (SMTP), specifies two important but not difficult limitations in rfc821:
1) the contents of the email must be all 7-bits ASCII.
2) the length of each line cannot exceed 1000 characters.
Therefore, in order to transmit through SMTP, the serialized object of memory must be converted to the compatible format.
Rfc1521 provides a viable solution. It defines the content portion of an email, allowing it to contain multiple forms of data. This standard is known as mime.
According to the rfc1521 encoding, the input is 24 bits and the output is 4 bytes. The 24-bit input group was formed from left to right by three 8-bit input groups. The 24 bits are viewed as four consecutive six bits, and each six-bit input group is translated into a number in the base64 code table. In turn, the process is repeated until the entire input data transformation is complete.
If the last two input data is left, add 1 = after the encoding result; If the final input data is left, the encoding results add 2 =; If you dont have any data left, dont add anything, so you can guarantee the correctness of the data reduction.
The full base64 definitions are visible RFC1421 and RFC2045. The encoded data is slightly longer than the original data, which is 4/3. In E-mail, according to RFC822, each 76 characters will need to be replaced by a carriage return. You can estimate that the data length is about 135.1 percen
您可能关注的文档
- 全新版大学英语(第二版) 4 课后翻译中英语(外国英语资料).doc
- 巧虎乐智小天地0706-0808目录(外国英语资料).doc
- 12864串行接口(外国英语资料).doc
- 12864的串行(外国英语资料).doc
- 64位WIN7比起32位WIN7的好处(外国英语资料).doc
- CentOS 6.6 64bit 安装getmail收取163邮件(外国英语资料).doc
- fc 吞食天地2 招收武将大法(外国英语资料).doc
- HP__8647A_8648A_D中文参数(外国英语资料).doc
- unicode编码范围(外国英语资料).doc
- win8安装那个版本好,64位还是32位(外国英语资料).doc
文档评论(0)