This plugin is still in beta stage and may not work as expected. Please submit any issues to the plugin repo.
$ ionic cordova plugin add com-badrit-base64 $ npm install @ionic-native/base64
Plugin Repo: https://github.com/hazemhagrass/phonegap-base64
This Plugin is used to encode base64 of any file, it uses js code for iOS, but in case of android it uses native code to handle android versions lower than v.3