vishal-revdiwala opened a new issue, #538:
URL: https://github.com/apache/cordova-plugin-file/issues/538

   # 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
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   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
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   "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
   <!-- 
   What are relevant versions you are using?
   Ionic:
   
      Ionic CLI                     : 5.4.16 
(/Users/vishalrevdiwala/.nvm/versions/node/v14.2.0/lib/node_modules/ionic)
      Ionic Framework               : @ionic/angular 4.11.13
      @angular-devkit/build-angular : 0.12.4
      @angular-devkit/schematics    : 7.2.4
      @angular/cli                  : 7.3.8
      @ionic/angular-toolkit        : 1.5.1
   
   Cordova:
   
      Cordova CLI       : 11.0.0
      Cordova Platforms : android 10.1.2, ios 6.2.0
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, 
cordova-plugin-ionic-webview 5.0.0, (and 26 other plugins)
   
   Utility:
   
      cordova-res : 0.15.4
      native-run  : 1.6.0
   
   System:
   
      ios-deploy        : 1.11.4
      ios-sim           : 8.0.2
      NodeJS            : v14.2.0 
(/Users/vishalrevdiwala/.nvm/versions/node/v14.2.0/bin/node)
      npm               : 8.17.0
      OS                : macOS Monterey
      Xcode             : Xcode 13.4.1 Build version 13F100
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to