We have form embedded html web resource which use to download image as shown as bellow. This is not working in any mobile platform. Are there any workaround or any suggestion for this issue?
1st approach -
function DownloadImage(srcEncoded, filename) {
const linkSource = srcEncoded;
const downloadLink = document.createElement("a");
downloadLink.href = linkSource;
downloadLink.download = filename;
downloadLink.click();
}
2nd approch -
var imglink = '<a href = "' + srcEncoded+ '" download = "' + filename + '" style="color:#bf425d"> download </a>'
srcEncoded is a 64bit encoded string