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