forked from wkh237/react-native-fetch-blob
-
Notifications
You must be signed in to change notification settings - Fork 787
Utils API
Madhav Varshney edited this page Jan 24, 2019
·
4 revisions
Simply prepend RNFetchBlob-file://
to a path, this make the file path becomes recognizable to native fetch
method.
Session API helps managing cached files, the following function call, will try to return an existing session object with the given name
, if it does not exist, create one.
RNFetchBlob.session('mysession')
see Sessions API for more usages.
0.4.2
A helper class simply uses base-64@mathiasbynens for decode and encode BASE64 data.
RNFetchBlob.base64.encode(data)
RNFetchBlob.base64.decode(data)