After using expo's ImagePicker and saving the image in the local cache, I am trying to save the image to firebase storage (or its new name, Cloud Storage for Firebase).
The relevant code is:
base64String =
FileSystem.readAsStringAsync(photoUri,
{ encoding: FileSystem.EncodingTypes.Base64 });
and then
ref.putString(base64String,'base64',
{ contentType: 'image/jpeg' })
However, something is wrong with the image that I save to firestore, and I cannot view it (either directly from the firestore console or my code).
Am I doing anything wrong?