What is difference Between Base64 and Multipart?(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 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Base64 和 Multipart 有什么区别?


基础教程推荐
- AdMob 广告未在模拟器中显示 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01