alex_bn_lee

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

[993] Base64

ref: Base64-wiki

ref: base64encoder.io

ref: b64encode.com


Base64 is a binary-to-text encoding scheme that allows binary data to be represented as a sequence of printable ASCII characters. It achieves this by translating binary data into a radix-64 representation. Here’s how it works:

  1. Binary Data Representation: Base64 encoding is commonly used when there’s a need to transmit binary data over media that don’t handle binary data correctly. It’s designed to deal with textual data belonging to the 7-bit US-ASCII charset. For example, email (SMTP) was traditionally designed to work with plain text data in the 7-bit US-ASCII character set. Although it was later extended to support non-US-ASCII text messages and non-text messages (such as audio and images), it’s still recommended to encode the data to the ASCII charset for backward compatibility.

  2. Safe Transmission: Base64 encoding encodes any binary data or non-ASCII text data into a printable ASCII format. This ensures safe transmission over any communication channel. For instance, when you send an email containing an image to a friend, your email software Base64-encodes the image and inserts the equivalent text into the message. The friend’s email software then Base64-decodes the encoded text to restore the original binary image1.

In summary, Base64 encoding is a widely used technique for representing binary data as text, making it suitable for safe transmission and storage across various systems and protocols2.

posted on   McDelfino  阅读(10)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示