title: Base64 to Gallery plugin not work in Ionic 4 and 5
body: <p>Plugin is ::</p>
  <ul>
  <li>ionic cordova plugin add cordova-base64-to-gallery</li>
  <li>npm install @ionic-native/base64-to-gallery</li>
  </ul>
  <p>When I saved a image into gallery then show this error “Error while saving image”</p>
  <p>Code ::</p>
  <pre><code>downloadQR(){  
  const canvas = document.querySelector(‘canvas’) as HTMLCanvasElement;  
  const imageData = canvas.toDataURL(‘image/jpeg’).toString()  
  console.log(imageData)  
  let data = imageData.split(’,’)[1];  
  console.log(data)  
  this.base64.base64ToGallery(data, {  
  prefix:’_img’,mediaScanner : true}).then(async res=&gt;{  
  console.log(res)  
  let toast = await this.toastCtrl.create({  
  header : ‘QR code save’  
  })  
  toast.present()  
  }, err =&gt; console.log(“err”,err)  
  )  
  }  
  </code></pre>
  <p>What is problem of my code? any other solution ??</p>