Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when reading file as base64 stream #392

Open
paksa92 opened this issue Nov 27, 2024 · 3 comments
Open

App crashes when reading file as base64 stream #392

paksa92 opened this issue Nov 27, 2024 · 3 comments

Comments

@paksa92
Copy link

paksa92 commented Nov 27, 2024

Using react-native 0.76.2 and react-native-blob-util 0.19.11.

My app crashes in the iOS simulator on a MBP M2 when calling:

RNFetchBlob.fs.readStream("some_path", "base64", 1992000)

I get the following error:

image

The file exists at the given path. I can't test on a device right now, will try later.

Any idea what may cause this?

@RonRadtke
Copy link
Owner

No, no idea why that is happening....
Does it always crash or just with certain files / paths? And only base64?

@Jahanzeb009
Copy link

+1

@paksa92
Copy link
Author

paksa92 commented Jan 2, 2025

No, no idea why that is happening.... Does it always crash or just with certain files / paths? And only base64?

It only crashes when reading as base64 and passing a chunk size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants