Flutter教程

Base64 To Gallery

Contents

This plugin allows you to save base64 data as a png image into the device

https://github.com/Nexxa/cordova-base64-to-gallery

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic Base64 转化成图片Base64 To Gallery插件的安装(Installation)

ionic cordova plugin add cordova-base64-to-gallery npm install @ionic-native/base64-to-gallery
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/base64-to-gallery

Ionic Base64 转化成图片Base64 To Gallery插件支持的平台(Supported Platforms)

  • Android
  • iOS
  • Windows Phone 8

Ionic Base64 转化成图片Base64 To Gallery插件的用法(Usage)

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)
);