Get base64 of audio data from Cordova Capture
I am using ngCordova Capture to write this code by recording audio and send the base64 somewhere (via REST). I could get the Capture Audio to work but once it returns the audioURI, I cannot get the data from the filesystem as base64. My code is below: $cordovaCapture.captureAudio(options).then(function(audioURI) { $scope.post.tracId = $scope.tracId; $scope.post.type = 'audio'; console.log('audioURI:'); console.log(audioURI); var path = audioURI[0].localURL; console.log('path:'); console.log(path); window.resolveLocalFileSystemURL(path, function(fileObj) { var reader = new FileReader(); console