hazemhagrass / phonegap-base64

Plugin to get base64 encoding of any IMAGE, Base64 can be retrieved for any file for android, however for iOS images only supported
19 stars 42 forks source link

Error Message; Native: tried calling Base64.encodeFile, but the Base64 plugin is not installed #17

Open prashantRR1st opened 6 years ago

prashantRR1st commented 6 years ago

Installed multiple times.

ollyde commented 3 years ago

Also have the same issue, using Capacitor with React

Leo1305Pineda commented 3 years ago

In me case to worked installing the plugin device npm install com-badrit-base64 npm install @ionic-native/base64 npm install cordova-plugin-device npm install @ionic-native/device ionic cap sync

This is my console log VM531:5 Uncaught ReferenceError: device is not defined at Base64.window.plugins.Base64.encodeFile (<anonymous>:5:2) at <anonymous>:1:23

Origin error line 11 https://github.com/hazemhagrass/phonegap-base64/blob/master/www/Base64.js