Skip to main content

All Questions

1 vote
2 answers
959 views

How to solve Firebase Storage: Invalid URL when trying to upload and image react native

I am trying to upload an image to firebase storage, the problem is I get Firebase Storage: Invalid URL when I try to upload it. First I get the uri from the react-native-image-picker then I use it to ...
Albin Rdz's user avatar
  • 163
1 vote
1 answer
138 views

Make one function wait for another...Async/ Await

When I pick an image using react-native-image-picker everything works as expected. I then pass the response to a function to upload the image to firebase storage. On my device, this seems to work, ...
essveeyel's user avatar
2 votes
3 answers
10k views

Images put to storage are saved as 'octet-stream' rather than image/jpeg (firebase and ReactNative)

I am using the camera(react-native-image-Picker) to take a pick and save it to storage. Here is how I am doing it. const saveImage = async () => { const id = firebase.firestore().collection('...
Byusa's user avatar
  • 3,097
0 votes
1 answer
2k views

Firebase Cloud Storage Error Loading Preview Uploaded Image

I uploaded an image using react-native-image-picker's base64 generated data. It shows up on Firebase console fine, but when I try to look at it on my browser, it says "Error Loading Preview" ...
Qrow Saki's user avatar
  • 1,072
1 vote
2 answers
3k views

React Native Expo How to upload an image to Firebase using expo Image picker

I'm trying to upload an Image to my firebase but I can't figure it out. This is my code _pickImage = async () => { let result = await ImagePicker.launchImageLibraryAsync({ mediaTypes: ...
Millenial2020's user avatar
12 votes
5 answers
27k views

NativeFirebaseError: [storage/unauthorized] User is not authorized to perform the desired action

I'm having problems uploading an image to Firebase Storage. I'm using React Native's @react-native-firebase/storage and the installation and connectivity seem to be fine because I'm able to reference ...
sigmapi13's user avatar
  • 2,563
4 votes
2 answers
3k views

Firebase Storage: string does not match format base64: invalid character found. Only when debug is off

I'm trying to upload an image file to firebase storage, save the download URL, and load it after the upload is completed. When I run the app with debug js remotely on it works fine. When I turn off ...
soutot's user avatar
  • 3,671