1、早期的一些郵件服務器隻支持文本信息,不支持二進制信息和文件。而base64編碼後的結果都是純文本的,适合用電子郵件來傳送二進制數據。
2、Base64是網絡上最常見的用于傳輸8Bit字節代碼的編碼方式之一,可以查看RFC2045~RFC2049,上面有MIME的詳細規範。
3、Base64編碼可用于在HTTP環境下傳遞較長的标識信息。
4、在其他應用程序中,也常需要把二進制數據編碼為适合放在URL中的形式。
5、采用Base64編碼具有不可讀性,即所編碼的數據不會被人用肉眼所直接看到。