-
Notifications
You must be signed in to change notification settings - Fork 1.6k
'Failed to convert data to 'utf8' encoded string' with RNFetchBlob.fs.readStream #593
Comments
hey have you resolved this issue . I am facing the same issue. |
No, not really, I had to use a workaround. If the error occurs, I use |
hey Thanks for the reply. Ill apply the same. Can you confirm me one more thing? I have xls file with 1000 rows and 10 column. RNFetchBlob.fs.readFile would work fine with it ? whats the limit of big for readFile(). |
I am reading a csv with ~70k rows and 6 columns with BTW a csv with ~1.8M rows is too large, the script crashes when I attempt to read it with |
Ahh..okay Thanks for the info. One last thing have you tried reading the .xls or .xlsx file. I am able to read .csv file but not .xls or .xlsx file. |
Hi! I am trying to read a CSV file with
RNFetchBlob.fs.readStream
, but keep getting this error:Curious thing is, that when I use
readFile()
instead ofreadStream()
, the operation runs just fine and I get a result. The problem is, I would like to usereadStream()
because some of the files I need to read are too big to be efficiently handled byreadFile()
.Also, other files in the same directory and with the same format can be processed with both
readFile()
andreadStream()
.Here is my code:
This is the part that works on some files and does not work on others (for example the trips.txt). I have not found anything that makes the files that work different from the files that don't. Worth noting is, that it always crashes inside the
readStream()
call, without ever getting to any of the callbacks.What always works (except for very large files, obviously :-) ), is this:
my RN and RNFetchBlob versions:
Any help is appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: