What is difference Between Base64 and Multipart?

烂漫一生 提交于 2019-12-08 15:27:22

问题


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

I know Multipart is faster then Base64...

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


回答1:


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
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.




回答2:


Multipart ist a part of the http protocol. See

https://stackoverflow.com/a/19712083/5694629

Base64 is a way to convert arbitrary content into a serializable form for transmission.



来源:https://stackoverflow.com/questions/47095294/what-is-difference-between-base64-and-multipart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!