android save img to Album error #16714
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
let options = {
fromUrl: url,
toFile:
${path}/${newName}${extension}
,background: true
};
RNFS.downloadFile(options).promise.then(res => {
cb(null, res)
var tempURl = path+'/'+newName+extension;
try{
var promise = CameraRoll.saveToCameraRoll(tempURl,'photo');
promise.then(succ=>{
alert('succ:'+JSON.stringify(succ));
}).catch(err=>{
alert('err:'+JSON.stringify(err));
})
}catch(err){
alert(err);
}
}).catch(err => {
cb(err)
})
The text was updated successfully, but these errors were encountered: