I'm using React Native and Expo. I'm using the Expo image picker which returns a local URI to an image file. The URI returned looks like this:
file:///data/user/0/com.myapp/cache/ExperienceData/%2540myapp%252Fmyapp/ImagePicker/c5a29113-7c8f-4224-99ec-007f641841ee.jpg
On iOS, I can use the React Native Fetch API to get the blob so I can upload it to S3 using the Amplify Storage Service. Everything works fine.
On Android, however, it does not work. The fetch command returns 1 rather than a response; there are no errors.
I can't use (well, don't want to use) rn-fetch-blob because my application is detached and the rn-fetch-blob needs to be patched to work with Expo 32.
Funny thing though ... if instead of using the image resizer's URI, I use an image URL from the network, it works on both Android and iOS. So, how do I use fetch on Android to return the contents of the local file from the Android image picker?