You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/08/30 09:56:35 UTC

[GitHub] [cordova-plugin-file] vishal-revdiwala opened a new issue, #538: readAsDataURL promise resolve with empty data at end of data:audio/mpeg;base64, in Android target API 30

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: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-file] Valdenirmezadri commented on issue #538: readAsDataURL promise resolve with empty data at end of data:audio/mpeg;base64, in Android target API 30

Posted by GitBox <gi...@apache.org>.
Valdenirmezadri commented on issue #538:
URL: https://github.com/apache/cordova-plugin-file/issues/538#issuecomment-1387694267

   same issue


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-file] breautek commented on issue #538: readAsDataURL promise resolve with empty data at end of data:audio/mpeg;base64, in Android target API 30

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #538:
URL: https://github.com/apache/cordova-plugin-file/issues/538#issuecomment-1402845725

   Unable to reproduce with a pure cordova app.
   
   Can a [minimal reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md) can be provided? It should not include frameworks, just a pure cordova app.
   
   I've tested loading from:
   - internal storage, like the application directory
   - external storage like the downloads directory (written by another app), permission denied as expected
   - external storage like the external application's data directory (used the file API to copy the sound file, then read from it)
   
   


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org