You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
When I have the debugger attached and I'm inspecting network, I also see:
GET file:///data/user/0/com.my.app/cache/Camera/6e499c20-6e3e-4233-becf-12a1d5e381aa.jpg net::ERR_FILE_NOT_FOUND
Expected Behaviour
I expect to have a successful fetch response where I can obtain a Blob reference to my file so that I can use binary apis rather than using memory intensive and less performant base64 strings.
Steps to Reproduce
The code above inside of even the most basic of camera setups is more than sufficient.
I'm not using Expo.
Additionals
I have the following permissions in my AndroidManifest.xml:
I'd like to get a Blob object. Initially it'll be for sending the file to a server, but we also have a few other operations in mind where it'll be nice to have the standard Blob representation (watermarking, encryption).
Biggest thing here is I want to avoid loading all the data into memory as a base64 encoded string.
Entering this in as a separate comment - feel free to pick up my last response if you had something in mind, or any advice 😁 - but it appears as though I've been able to get access to the file thanks to this comment.
Seems like there's a problem in react native with fetch...
Bug Report
To Do First
Related Modules
RNCamera
Platforms
Android
Description/Current Behaviour
When I run the following:
...the last line triggers the following exception (regardless of whether I have the debugger attached or not):
When I have the debugger attached and I'm inspecting network, I also see:
Expected Behaviour
I expect to have a successful fetch response where I can obtain a
Blob
reference to my file so that I can use binary apis rather than using memory intensive and less performant base64 strings.Steps to Reproduce
The code above inside of even the most basic of camera setups is more than sufficient.
I'm not using Expo.
Additionals
I have the following permissions in my
AndroidManifest.xml
:cc.
The text was updated successfully, but these errors were encountered: