I met the issue when i use this function to read a 300MB file on ios and when I read a 3MB it works well.
It works well on android when read 300MB file, too.
LOG 2afae907f0696430905e416aca57f2ce.MP4 chunk 157593600
LOG 2afae907f0696430905e416aca57f2ce.MP4 chunk 158515200
LOG oops [Error: Failed to convert data to 'base64' encoded string, this might due to the source data is not able to convert using this encoding. source = Failed to grow buffer]
WARN Failed to convert data to 'base64' encoded string, this might due to the source data is not able to convert using this encoding. source = Failed to grow buffer
WARN Failed to convert data to 'base64' encoded string, this might due to the source data is not able to convert using this encoding. source = Failed to grow buffer
Reproduce
I met the issue when i use this function to read a 300MB file on ios and when I read a 3MB it works well. It works well on android when read 300MB file, too.
Error
log source
https://github.com/RonRadtke/react-native-blob-util/blob/618685faafaef005e3aabbf13933ee2767f9f2b5/ios/ReactNativeBlobUtilFS.mm#L271