Can i download and save image from url locally in ios ?not in photos
if yes then how ?
Can i download and save image from url locally in ios ?not in photos
if yes then how ?
Try this?
assetManager.loadRemote<ImageAsset>(url, (err, asset: ImageAsset) => {
if (err) return;
if (sys.isNative) {
let base = native.fileUtils.getWritablePath();
// @ts-ignore
let cacheSrc = asset.data.src;
let buffer = native.fileUtils.getDataFromFile(cacheSrc);
let fileName = base + "folder/test.jpg"
native.fileUtils.writeDataToFile(buffer, fileName);
}
});