itinance/react-native-fs

How to save blob or binary data

Aperta

#69 aperta il 11 apr 2016

 (16 commenti) (16 reazioni) (0 assegnatari)C++ (1012 fork)batch import
help wantedquestion

Metriche repository

Star
 (5043 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

response is a blob....

writeBlob(response){ return RNFS.writeFile(this.path + '/' + 'first.pdf', response, 'base64') .then((success) => { console.log('FILE WRITTEN!'); }) .catch((err) => { console.log(err.message); }); },

Guida contributor