Skip to content

A cordova plugin that provides the functionality to convert image to base64(Android & ios).

Notifications You must be signed in to change notification settings

autobotsrocks/cordova-imageBase64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cordova-imageBase64

A cordova plugin that provides the functionality to convert image to base64.

Installing the plugin

cordova plugin add https://github.com/autobotsrocks/cordova-imageBase64

Usage

Convert location image

window.autobots.imageBase64.base64(
  '/storage/emulated/0/Pictures/hello.png',
  function(base64) {
    alert(base64);
  },
  function(error) {
    alert(error);
  }
);

Convert internet image

window.autobots.imageBase64.base64FromUrl(
  'https://www.google.com/images/srpr/logo11w.png',
  function(base64) {
    alert(base64);
  },
  function(error) {
    alert(error);
  }
);

License

MIT

About

A cordova plugin that provides the functionality to convert image to base64(Android & ios).

Resources

Stars

Watchers

Forks

Packages

No packages published