I am trying to store images retrieved by Expo.ImagePicker in firebase storage. I am using sdk 31.
There are various examples on how to do that (https://github.com/aaronksaunders/expo-rn-firebase-image-upload, https://github.com/expo/image-upload-example, https://github.com/expo/firebase-storage-upload-example), but I am facing some problems:
- I am unable to ‘fetch’ the captured image from local cache. It seemed to work for a while, but then, the fetch started to return a “Network request failed” error. Not sure why.
- Since I was stuck, I tried to use FileSystem.readAsStringAsync instead of fetch, and write the base64 string in firebase storage. Everything seem to work, except that I am not being able to view the images…
Any idea how to solve any of the problems?
More details here: