|
4 | 4 |
|
5 | 5 | A project committed to make file acess and data transfer easier, efficient for React Native developers. |
6 | 6 |
|
7 | | -> If you're going to use github repo as npm dependency please use the [archive repository](https://github.com/wkh237/react-native-fetch-blob-package/releases/tag/v0.9.6). |
| 7 | +> If you're going to use github repo as npm dependency please visit the [archive repository](https://github.com/wkh237/react-native-fetch-blob-package/releases/tag/v0.9.6). |
8 | 8 |
|
9 | | -> If you're using this library as Firebase Storage solution, please upgrade to 0.9.6 since XMLHttpRequest polyfill has way better compatibility than previous versions. |
| 9 | +> For Firebase Storage solution, please upgrade to 0.10.1-beta.1 for best compatibility. |
10 | 10 |
|
11 | 11 | ## Features |
12 | 12 | - Transfer data directly from/to storage without BASE64 bridging |
13 | 13 | - File API supports normal files, Asset files, and CameraRoll files |
14 | 14 | - Native-to-native file manipulation API, reduce JS bridging performance loss |
15 | 15 | - File stream support for dealing with large file |
16 | 16 | - Blob, File, XMLHttpRequest polyfills that make browser-based library available in RN (experimental) |
17 | | -- JSON stream supported base on [Oboe.js@jimhigson](https://github.com/jimhigson/oboe.js/) |
| 17 | +- JSON stream supported base on [Oboe.js](https://github.com/jimhigson/oboe.js/) @jimhigson |
18 | 18 |
|
19 | 19 | ## TOC |
20 | 20 | * [About](#user-content-about) |
@@ -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) |
|
0 commit comments