Base64 To Gallery
This plugin allows you to save base64 data as a png image into the device
https://github.com/Nexxa/cordova-base64-to-gallery
Stuck on a Cordova issue?
If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.
Installation#
- Capacitor
 - Cordova
 - Enterprise
 
$ npm install cordova-base64-to-gallery $ npm install @ionic-native/base64-to-gallery $ ionic cap sync$ ionic cordova plugin add cordova-base64-to-gallery $ npm install @ionic-native/base64-to-gallery Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us
Supported Platforms#
- Android
 - iOS
 - Windows Phone 8
 
Usage#
React#
Learn more about using Ionic Native components in React
Angular#
import { Base64ToGallery } from '@ionic-native/base64-to-gallery/ngx';
constructor(private base64ToGallery: Base64ToGallery) { }
...
this.base64ToGallery.base64ToGallery(base64Data, { prefix: '_img' }).then(  res => console.log('Saved image to gallery ', res),  err => console.log('Error saving image to gallery ', err));