Open mannok opened 5 years ago
Well, such things happen when you are blowing your devices memory with such a big file. It was never a good practice to load a file completely into memory. You should treat this instead on a chunk-by-chunk basis. Best thing here would be to find a library, that is capable of decrypting the crypt12-file. Then you can load this database (assuming it is Sqlite3 based) with react-native-sqlite-storage to dig trough the data.
There is little chance, that whatsapp is using sqlite-cipher for encyrption (DYOR pls). Then this issue should give you help: https://github.com/craftzdog/react-native-sqlite-2/issues/32
same issue, I tried to upload 30 sec video
同样的问题,我尝试上传30秒的视频
Did you solve this problem later
same issue, I tried to upload 30 sec video
Did you solve this problem later
I have tried rn-fetch-blob library instead and it work for me
I have tried rn-fetch-blob library instead and it work for me
RNFetchBlob.fs.readStream?
no const data = RNFetchBlob.wrap(localPath) RNFetchBlob.fetch('POST', url, { 'Content-Type': 'multipart/form-data' }, [ { name: 'file', filename: 'test', data, type: this.mediaMimeType } ]) but I have found that it's slower than send data in base64. So I still looking for faster solution
Hi, Any update about this issue? I have the same issue.
Same issue
I am having the same issue any solution??
Same here
Same here
Getting same error. Device is fresh android emulator with android 11, lots of free space and 800mb free memory so that shouldn't be problem. Error doesn't happen everytime tho, with small files never, ~10mb file, sometimes/often, bigger than that, always.
Any update on this issue?
+1
+1
Any update on this issue?
Same here
Hello, any help with this error?
Same issue here. I am using the read() method to chunk 5Mb segments of a 1Gb file and can process about 300Mb before this fails.
same here. any update with this issue ?
+1
+1
same here. any update with this issue ?
@dzakki did you find the issue?
same here. any update with this issue ?
@dzakki did you find the issue?
I haven't identified the issue yet
still facing a similar issue when using RNFS.read
with a reasonable chunk size, it looks like it tried to allocate memory larger than the chunk size requested.
Any update to resolve this issue? @mannok @itinance @dolphinflow86 @sej1228 @lyudad
Any update on this, RNFS.readFile error when file is big > 40MB
Do not read more than 0.5 meters of file size at a time, and it seems that no errors will be reported.
i have same issue , please anyone have solution please reply with answer
I am trying to read 2xxmb crypt12 file from FS. When I trying to run
await RNFS.readFile(
${RNFS.ExternalStorageDirectoryPath}/Whatsapp/Databases/msgstore.db.crypt12)
, it prompts upI have already set
android:hardwareAccelerated="false"
andandroid:largeHeap="true"
in AndroidManifest.xml but no luck.How can I solve it? Thank you