I am trying to save generated qr Code to gallery of mobile, for that i am using Base64ToGallery plugin. Base64ToGallery Plugin is saving image in the following path " /var/mobile/Containers/Data/Application/D453CNA6-ACC1-40F1-916A-D73B5A13975C/Library/NoCloud/_img4622783188.png" in iPhone. But i cant find the image under Photos of iPhone. Following is the code to save image into gallery
save() {
html2canvas(document.querySelector("#screens")).then(canvas => {
try {
this.qrCodeGen.base64Image = canvas.toDataURL('image/jpeg', 0.9);
let options:Base64ToGalleryOptions = { prefix: '_img',mediaScanner: true };
this.platform.ready().then(() => {
this.base64ToGallery.base64ToGallery(this.qrCodeGen.base64Image,options)
.then(
res => {
debugger
console.log('Saved image to gallery ', res);
},
err => {
debugger
console.log('Error saving image to gallery ', err);
});
});
} catch (error) {
console.log("errorr ", error);
}
});
}
If anyone did saving base64 string into gallery, it would be nice to get some solutions.