Firebase has a 10 MB limit for its fields which are text based. I'd like to know how in an Android app I can save/restore a user's avatar image in firebase as a base64 encoded string.
Asked
Active
Viewed 1,104 times
0
-
Your question is still too broad. What exactly is your problem? Are you asking how to encode an image; or how to actually save it? You see; you name all the relevant terms in your questions; and theoretically you would just need to do some searching to find example code for the various steps you need to implement ... – GhostCat Mar 20 '16 at 14:08
2 Answers
0
Save the image to internal storage and store the path to the image in firebase.
Then to fetch the image get the path and recreate the image in any of the valid ways

Terry W
- 203
- 3
- 9
0
Start here ;)
http://www.programcreek.com/java-api-examples/android.util.Base64
Basically all the base64 decoders will change the binary file to Strings by Hashing the bit Stream. Sounds complicated but the code that does it is very basic because streaming is so common.

sivi
- 10,654
- 2
- 52
- 51