react-native-image-resizer icon indicating copy to clipboard operation
react-native-image-resizer copied to clipboard

Can't retrieve the file from the path.

Open nes123 opened this issue 7 years ago • 2 comments

on iOS : can't retrieve from rct-image-store://0

any ideas how to fix that ?

nes123 avatar Nov 27 '17 19:11 nes123

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. 👍

tutts avatar Nov 29 '17 19:11 tutts

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?

zSergeant avatar May 09 '19 01:05 zSergeant

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.

stale[bot] avatar Sep 01 '22 19:09 stale[bot]

This issue has been automatically closed. Thank you for your contributions.

stale[bot] avatar Sep 09 '22 03:09 stale[bot]