Base64 To Gallery

Improve this doc

$ ionic plugin add cordova-base64-to-gallery

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

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

Supported platforms

Usage

import {Base64ToGallery} from 'ionic-native';


Base64ToGallery.base64ToGallery(base64Data, 'img_').then(
  res => console.log("Saved image to gallery ", res),
  err => console.log("Error saving image to gallery ", err)
);

Instance Methods

base64ToGallery(data, prefix)

Converts a base64 string to an image file in the device gallery

Param Type Details
data
prefix

API

Native

General