switch to Cordova NSData+Base64