Closed Tsiniloiv closed 6 years ago
Disregad. The image path was under data.path, not data.
Hi, how can you make RNFS work with blob file like this: blob:http://localhost:8081/c7257d7b-8273-4870-82db-484cd82571e5
. I tried many ways but not working, I just want to download this blob file
So I'm trying to use react-native-camera and react-native-fs together to take pictures and then save them to a folder I choose. I've managed to make the folder, but when I try to RNFS.moveFile it throws a weird yellowbox error:
If I try to examine the error further it catches another exception in the blob constructor at Blob.js:98, saying that 'parts' is undefined.
The idea is that react-native-camera saves the picture to a temporary folder, and then I use react-native-fs to move it to where I want it to be.
I can confirm that the picture gets taken, and react-native-fs seems to be working in general since I can do mkdir to make the target directory, but manually examining the directory finds it totally empty. The image does not get moved. What am I doing wrong?