Base64 和 Multipart 有什么区别? [英] What is difference Between Base64 and Multipart?

查看:36
本文介绍了Base64 和 Multipart 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能解释一下Base64以及Multipart的优点是什么

Can any one explain what is the advantage of Base64 as well Multipart

我知道 Multipart 比 Base64...

I know Multipart is faster then Base64...

但是仍然有很多开发人员在使用 Base64...我研究了这两个文档但我不清楚

But still many developers are using Base64...I studied both documentation but i am not clear

推荐答案

Base64
Base64 是一种通过将二进制数据转换为 radix-64 表示来将二进制数据编码为 ASCII 字符格式的方法.
我建议您不要使用 Base64 将大文件/数据上传到服务器,因为它会转换整个数据并将其发布到服务器.

Base64
Base64 is a way to encode binary data into an ASCII character format by translating it into a radix-64 representation.
I recommend you that never use Base64 for large file/data upload to server beacuse it's convert whole data and post it to server.

多部分
Multipart 是一种以字节为单位的部分形式将文件/数据上传到服务器的方法.但是,Multpart/form-data 应用于表单,因此您可以以多部分形式发送所有内容,也包括常规"数据.

Multipart
Multipart is a way to upload file/data to server in the form of part which are in bytes. Multpart/form-data is applied to a form though, so you can send everything in a multi-part form, including "regular" data also.

这篇关于Base64 和 Multipart 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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