什么是使用Base64编码的优势在哪里? [英] What is the advantage of using Base64 encoding?

查看:490
本文介绍了什么是使用Base64编码的优势在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是使用的Base64 EN code?

What is the advantage of using Base64 encode?

我想更好地理解它。我真的需要它吗?不能我只是用纯字符串?

I would like to understand it better. Do I really need it? Can't I simply use pure strings?

听说的编码可以是比原来的(至少对于图像)。

I heard that the encoding can be up to 30% larger than the original (at least for images).

推荐答案

原来一些协议只允许7位,有时甚至只有6位数据。

Originally some protocols only allowed 7 bit, and sometimes only 6 bit, data.

Base64编码允许一个EN code 8位数据转换成6位为这些类型的链路传输。

Base64 allows one to encode 8 bit data into 6 bits for transmission on those types of links.

电子邮件是一个这样的例子。

Email is an example of this.

这篇关于什么是使用Base64编码的优势在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆