react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

Error on readFile large file on android

Open ketan-pcs opened this issue 10 months ago • 2 comments

const fileBuffer = await RNFS.readFile(res.path, 'base64');

Exception in native call java.lang.RuntimeException: Could not invoke RNFSManager.readFile

ketan-pcs avatar Mar 11 '25 05:03 ketan-pcs

Getting the same issue.

owenadley avatar May 12 '25 18:05 owenadley

You should use the RNFS.read method to read your large file in chunks.

hayr-hotoca avatar Sep 15 '25 10:09 hayr-hotoca