Open nikojohnarellano opened 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.
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!
When using ExpoFileSystem.readAsStringAsync
, just changing enconding
option to base64
fixes to me.
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
Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate