|
@@ -608,10 +608,10 @@ When calling `readStream` method, you have to `open` the stream, and start to re
|
608
|
608
|
```js
|
609
|
609
|
let data = ''
|
610
|
610
|
RNFetchBlob.fs.readStream(
|
611
|
|
- // encoding, should be one of `base64`, `utf8`, `ascii`
|
612
|
|
- 'base64',
|
613
|
611
|
// file path
|
614
|
612
|
PATH_TO_THE_FILE,
|
|
613
|
+ // encoding, should be one of `base64`, `utf8`, `ascii`
|
|
614
|
+ 'base64',
|
615
|
615
|
// (optional) buffer size, default to 4096 (4095 for BASE64 encoded data)
|
616
|
616
|
// when reading file in BASE64 encoding, buffer size must be multiples of 3.
|
617
|
617
|
4095)
|