售前電話
135-3656-7657
售前電話 : 135-3656-7657
什么是Base64編碼
Base64是一種二進制到文本的編碼方案。它通過將其轉(zhuǎn)換為基數(shù)-64表示形式,以可打印的ASCII字符串格式表示二進制數(shù)據(jù)。
當需要通過無法正確處理二進制數(shù)據(jù)的媒體傳輸二進制數(shù)據(jù)時,通常使用 Base64 編碼,并且旨在處理僅屬于 7 位 US-ASCII 字符集的文本數(shù)據(jù)。
此類系統(tǒng)的一個例子是電子郵件 (SMTP),它傳統(tǒng)上設計用于處理 7 位 US-ASCII 字符集中的純文本數(shù)據(jù)。雖然,它后來擴展到支持非US-ASCII文本消息以及音頻和圖像等非文本消息,但仍建議將數(shù)據(jù)編碼為ASCII字符集以實現(xiàn)向后兼容性。
Content-Disposition: inline;
filename=favicon-16x16.png
Content-Transfer-Encoding: base64
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAARdQTFRFAAAAAAAAAAAAAAAAAQEBDAwMHBwcHx8fCwsLAwMDGRkZHh4eBAQEICAgtra2vb29pKSksLCwODg4FBQUh4eHtLS0m5ubISEh3NzciIiIERERwsLCnp6eAgICjIyMwMDAJycnDg4OBQUFEBAQ0NDQe3t7ycnJeXl5KCgo3d3daWlpCQkJDw8PzMzMmpqarKysyMjIOjo6kZGR9/f3sbGxnZ2dPDw8z8/Pfn5+FxcXjo6OsrKybm5u5ubmExMTBgYG1NTUiYmJCgoKTk5O39/fbGxs7OzsVFRUGhoa2tra9PT00dHRMTExzs7OhoaGhYWFLCwsIyMjuLi4xcXFUlJSRUVFvr6+2dnZoaGhFhYWBwcHFRUV////p5PkYgAAAAN0Uk5Tnvn4e+Nx/gAAAAFiS0dEXOrYAJcAAAAJcEhZcwAAAEgAAABIAEbJaz4AAACnSURBVBjTY2BgZEYCjAwMTMwogImBGQ0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