i am building a react native app that uses tensorflow and molienet model to classify images,
and i am using expo-image-picker to pick an image from the gallery,
let source= await ImagePicker.launchImageLibraryAsync({
mediaTypes: ImagePicker.MediaTypeOptions.All,
allowsEditing: true,
aspect: [4, 3],
});
const response = await fetch( source.uri, {}, { isBinary: true });
the last line throws a network error, knowing that source.uri is
“file:///data/user/0/host.exp.exponent/cache/ExperienceData/%2540nouragha%252FSmartRecognitionApp/ImageManipulator/90698957-22b1-4e28-a597-479f69a3918c.jpg”
does anyone have a solution?