Skip to content Skip to sidebar Skip to footer

What Is Difference Between Base64 And Multipart?

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 docu

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

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

Post a Comment for "What Is Difference Between Base64 And Multipart?"