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

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

问题描述

任何人都可以解释Base64Multipart的优点是什么

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

我知道Multipart比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.

多部分
分段是一种以字节为单位的一部分将文件/数据上载到服务器的方法.尽管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天全站免登陆