I am trying to get the base64 encoded string from a selected image using ImagePicker. I set the base64 option to true, but there is no base64 option in the resulting object. What I ultimately want to do is upload the image to firebase storage, so it is possible that I could use base64, File API, or Blob API. I thought it would be easy to use base64 because of the option with ImagePicker.
One possibility is that it’s because the images I am attempting to upload are .jpg files instead of .jpeg like the documentation states it would need.
So I just want to upload my image using either base64, File API, or Blob API. Can anyone recommend the best method?
This is old as hell but … the issue remains. I have been trying to no avail. Installed base-64 encode/decode into global.atob / global.btoa, but we still get this error.
It has to do with Firebase though, not Expo … just wondering if anyone has any workaround?
Currently uploadbytes randomly crashes in v9.