react-native-image-resizer
react-native-image-resizer copied to clipboard
Can't retrieve the file from the path.
on iOS : can't retrieve from rct-image-store://0
any ideas how to fix that ?
similar issue on Android (version 1.0.0):
file:///data/user/0/com.tutts/cache/1511984118804.JPEG
attempting to use in Java:
Bitmap bm = BitmapFactory.decodeFile(fileLocation);
although it returns null.
Edit - my issue resolved, I used an input stream instead when type is file:// in the same way you do in your source. 👍
console.log(Platform.OS == 'IOS'?result.pathName:"file://"+result.pathName); ImageResizer.createResizedImage(Platform.OS == 'IOS'?result.pathName:"file://"+result.pathName,200,110,"PNG",0)
"file://"+result.pathName => file:///storage/emulated/0/saved_signature/signature.png
error:Unable to load source image from path
what happen?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed. Thank you for your contributions.