ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.16k stars 1.56k forks source link

File '../../../sample.jpg' is not readable #667

Open nikojohnarellano opened 6 years ago

nikojohnarellano commented 6 years ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Expected behaviour

When trying to add the images selected as attachments for an email, the files should get attached without a problem.

Actual behaviour

An error is thrown with a message that says File is not readable

Steps to reproduce

I'm working on app that sends an email together with the images as attachments. But no success as these apparently are not readable. It would be better if there is an option for the request to make the object readable.

Attachments

screen shot 2018-04-04 at 10 45 34 pm // stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

AfflatusX commented 6 years ago

@nikoootine have you found any solution to this issue? I'm using expoKit to move the resulting image around and getting the same error.

tattivitorino commented 5 years ago

I'm still facing this same issue only on IOS.. "react-native-image-crop-picker": "0.24.1", react-native: 0.59.8 expo sdk 33 (ejected)

I know it's been almost a year but any news on this? I've read that the problem was with the ExpoKit fileSystem but I tried with RNFS and the problem persists!

douglasjunior commented 2 months ago

When using ExpoFileSystem.readAsStringAsync, just changing enconding option to base64 fixes to me.