I want to change my local image into file type so I can send it on a api. How can I do it? How can it be done with react-native-fetch-blob Please help.
This is what I'm trying so far but it gives me a warning that it cannot find the path to the image. And nothing is shown via alert.
RNFetchBlob.fs.readFile('../../assets/imgs/profile.jpg', 'base64')
.then((data) => {
// handle the data ..
alert(data);
})