![]() Java 8 introduced us to a new class - Base64. ![]() All emails are encoded before the applications send them. Email servers, for example, expect textual data. Also, many servers don't expect raw binary data. This data must be processed differently, depending on what it's supposed to represent. It can be part of an image, it can be a part of an audio file or it can be a command that deletes half of your hard drive. A sequence such as 0010110 can mean many things. Why use Base64 Encoding?Ĭomputers work with 0s and 1s, so why bother converting this into another format? This means that it takes ~33% more space to store a Base64 encoded string as opposed to the original string. Note: 6 input characters are encoded into 8 characters in the end. In the end, we're left with the string QUJDMTIz - the Base64 representation of ABC123.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |