We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It should read file data and append after data:audio/mpeg;base64, this.
It returns only string: data:audio/mpeg;base64, there is no file base64 data.
this.audioFilePath = this.platform.is('ios') ? this.file.dataDirectory : this.file.externalDataDirectory;
this.file.readAsDataURL(this.audioFilePath, fileName).then(base64 => { console.log("Base64 DATA: ", base64); }).catch(error => { console.log("Base64 ERROR: ", error); });
"cordova-android": "^10.1.0", "@ionic/angular": "^4.0.0", "cordova-plugin-file": "^7.0.0", "@angular/common": "^7.2.2", "@angular/core": "^7.2.2",
The text was updated successfully, but these errors were encountered:
same issue
Sorry, something went wrong.
Unable to reproduce with a pure cordova app.
Can a minimal reproduction app can be provided? It should not include frameworks, just a pure cordova app.
I've tested loading from:
No branches or pull requests
Bug Report
Problem
What is expected to happen?
It should read file data and append after data:audio/mpeg;base64, this.
What does actually happen?
It returns only string: data:audio/mpeg;base64, there is no file base64 data.
Information
Command or Code
this.audioFilePath = this.platform.is('ios') ? this.file.dataDirectory : this.file.externalDataDirectory;
this.file.readAsDataURL(this.audioFilePath, fileName).then(base64 => {
console.log("Base64 DATA: ", base64);
}).catch(error => {
console.log("Base64 ERROR: ", error);
});
Environment, Platform, Device
"cordova-android": "^10.1.0",
"@ionic/angular": "^4.0.0",
"cordova-plugin-file": "^7.0.0",
"@angular/common": "^7.2.2",
"@angular/core": "^7.2.2",
Version information
Checklist
The text was updated successfully, but these errors were encountered: