如何将图像作为 base64 编码字符串存储在 firebase 中

How do I store an image in firebase as a base64 encoded string

Firebase 对其基于文本的字段有 10 MB 的限制。我想知道如何在 Android 应用程序中 save/restore firebase 中的用户头像图像作为 base64 编码字符串。

将图像保存到内部存储并将图像的路径存储在 firebase 中。

然后获取图像获取路径并以任何有效方式重新创建图像

从这里开始 ;)

http://www.programcreek.com/java-api-examples/android.util.Base64

基本上所有的base64解码器都会通过Hashing the bit Stream将二进制文件变成Strings。听起来很复杂,但执行它的代码非常基本,因为流式传输非常普遍。