为什么我们需要在发送前为Base64 EN code图像? [英] Why do we need to base64 encode images before transmitting?

查看:114
本文介绍了为什么我们需要在发送前为Base64 EN code图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  

可能重复:结果
  什么用base 64编码?

我已经看到了采用base64 EN code图像传输通过HTTP协议之前,许多code片段。

我想知道,我们为什么需要它?


解决方案

这是没有必要的,但它使您能够嵌入图像,而无需进行额外的HTTP请求(其中,在某些情况下,这是不可能的或允许)。

Possible Duplicate:
What is the use of base 64 encoding?

I've seen many code fragments that base64 encode images before transmitting over HTTP protocol.

I am wondering why do we need it?

解决方案

It's not necessary, but it enables you to embed images without performing additional HTTP requests (where, in some cases, it's not possible or permitted).

这篇关于为什么我们需要在发送前为Base64 EN code图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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