itinance/react-native-fs

How to save blob or binary data

Open

#69 创建于 2016年4月11日

在 GitHub 查看
 (16 评论) (16 反应) (0 负责人)C# (4,629 star) (919 fork)batch import
help wantedquestion

描述

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); }); },

贡献者指南