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

Throws file not found error. Eventhough the file is present.

Open ghost opened this issue 9 years ago • 8 comments
trafficstars

The following the path. Is there anything wrong in the path format? "file:///data/user/0/com.anonimio/cache/c327d578-f31d-4ce9-a2e4-8f411c460d9e.jpg"

ghost avatar Aug 14 '16 00:08 ghost

we're seeing the same error, on android only. Everything works on iOS

nicolai86 avatar Oct 24 '16 10:10 nicolai86

Any solutions for this ?

developercode1 avatar May 18 '18 09:05 developercode1

screen shot 2018-08-21 at 10 14 18 am Same here net::ERR_FILE_NOT_FOUND GET file:///data/user/0/com.managemyrides.dev/cache/1534826310567.JPEG net::ERR_FILE_NOT_FOUND

the-yadu avatar Aug 21 '18 04:08 the-yadu

did any of you figure this out?

DISKONEKTeD avatar Oct 16 '18 03:10 DISKONEKTeD

how do we actually know the file is there? I'm looking through android file transfer and nothing comes up in the cache folder

DISKONEKTeD avatar Oct 16 '18 03:10 DISKONEKTeD

I got it working by removing the file:// from the image path in android and then it was working perfectly for me.

developercode1 avatar Oct 18 '18 10:10 developercode1

This is happening to me - I have react-native-fs as a dependency and I can verify the file exists with RNFS.exists(myPath).then( /* do image resize */ )

spruce-bruce avatar Jan 22 '19 00:01 spruce-bruce

Ah got it, in my case i was providing the file name in outputPath. So the file that didn't exist was the filename.jpeg directory.

spruce-bruce avatar Jan 22 '19 00:01 spruce-bruce

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]