![]() To send three bytes of information (3 times 8 is 24 bits), you need to use four bytes (4 times 6 is again 24 bits). There is a waste of 2 bits for each 8 bits of transmission data. ![]() That is, we use bytes (which are 8-bit words) as 6-bit words. On my blog, I frequently embed figures using base64: it is convenient for me to have the blog post content be one blob of data.īase64 is apparently wasteful because we use just 64 different values per byte, whereas a byte can represent 256 different characters. Load up or and look at the HTML source code: you will base64-encoded images. Not all non-textual documents are shared online using base64 encoding. The trick behind base64 encoding is that we use 64 different ASCII characters including all letters, upper and lower case, and all numbers. If you send an image or executable file by email, it often first gets encoded using base64. Many Internet formats from email (MIME) to the Web (HTML/CSS/JavaScript) are text-only.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |