Hi, is there some way to upload a blob from the ca...
# help
g
Hi, is there some way to upload a blob from the camera (in React Native) to storage?
Copy code
// capturedPhoto.uri is file URI
const reponse = await fetch(capturedPhoto.uri);
    const blob = await reponse.blob();

    const { error: uploadError } = await supabase.storage
      .from("fr8s")
      .upload(`/content_uploads/${fileName}`, blob);
This doesn't work. I've also tried array buffer, also doesn't work.
n
Hello @Gnee! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
https://github.com/supabase/supabase/discussions/2336 maybe? Edit I see you may have posted on a related thread in github, so hopefully someone sees it there.
n
Gnee (2022-06-01)