For example, when you send an email containing an image to your friend, your email software Base64 encodes the image and inserts the equivalent text into the message like so -Ĭontent-Disposition: inline filename =favicon-16x16.png Although, It was later extended to support non US-ASCII text messages as well as non-text messages such as audio and images, It is still recommended to encode the data to ASCII charset for backward compatibility.īase64 encoding encodes any binary data or non-ASCII text data to printable ASCII format so that it can be safely transmitted over any communication channel. One example of such a system is Email (SMTP), which was traditionally designed to work with plain text data in the 7-bit US-ASCII character set. It represents binary data in a printable ASCII string format by translating it into a radix-64 representation.īase64 encoding is commonly used when there is a need to transmit binary data over media that do not correctly handle binary data and is designed to deal with textual data belonging to the 7-bit US-ASCII charset only. Other Base64 variations share the same property but they use different symbols in the last two values.Base64 is a binary-to-text encoding scheme. The Base64 implementation in MIME uses a-z, A-Z and 0-9 for the first 62 values. This mixture leaves the data impossible to be altered in transportation thru information systems, such as electronic mail, that were typically not 8-bit clean. The common concept is to select a set of 64 characters that is both part of a subset typical to most encodings. The specific set of characters chosen for the 64 characters needed for the base can vary among implementations. Base64 is generally used in a number of applications including electronic mail via MIME, and keeping complex information in XML. This guarantees that the data stays unchanged without modification during transfer. Types of URI charactersīase64 encoding schemes are generally used when there is a need to encode binary information that needs to be stored and transferred over media that are developed to deal with textual information. Basically, Base64 is a collection of related encoding designs which represent the binary information in ASCII format by converting it into a base64 representation. The term Base64 is coming from a certain MIME content transfer encoding.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |