Rino
Rino

Reputation: 63

How to read/write file has big size in React Native

I'm using rn-fetch-blob library to read/write file base64 in React Native. When I read a file (pdf) have big size (~50Mb), I try using readStream and writeStream method of rn-fetch-blob but I got Error: Out of memory. Anyone give me solution for this problem? Thanks in advance

Upvotes: 0

Views: 989

Answers (1)

Mahammad Momin
Mahammad Momin

Reputation: 493

I think you need to use react-native-fs and you can find from below link https://blog.logrocket.com/how-to-access-file-systems-react-native/

Upvotes: 1

Related Questions