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 2021/09/24 16:58:38 UTC

[GitHub] [cordova-plugin-file] kalandher opened a new issue #499: Unable to read from external storage using 'readAsBinaryString' method in Android 11

kalandher opened a new issue #499:
URL: https://github.com/apache/cordova-plugin-file/issues/499


   # Bug Report
   
   Unable to read from external storage(file:///storage/emulated/0/Download/) using 'readAsBinaryString' method
   
   ## Problem
   
   ### What is expected to happen?
   Should be able to read file and success of  file.readAsBinaryString() method should have binary of selected file. 
   
   
   ### What does actually happen?
   Success of  file.readAsBinaryString() is returning null
   
   
   ## 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? -->
   ```
   self.file.readAsBinaryString(path, fileName)
                           .then(function (success) {
                           self._zone.run(function () {
                               self.attachmentFile = {
                                   fileName: onlyName,
                                   fileExtension: ext,
                                   data: btoa(success)
                               };
                           });
                       }).catch(function (error) {
                           console.log("readAsBinaryString fail", error);
                       })
   ```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Onplus 7 
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Android version - 11,
   sdk - 30
   cordova - 10.0.0
   ionic - v3
   cordova-plugin-file - "6.0.2"
   
   
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [] I updated all Cordova tooling to most recent version
   - [x] 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

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] bhandaribhumin commented on issue #499: Unable to read from external storage using 'readAsBinaryString' method in Android 11

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


   @breautek Thanks, Android-scoped-storage solves multiple problems. We are waiting for a new version like the camerahttps://github.com/apache/cordova-plugin-camera/blob/master/RELEASENOTES.md#600-aug-19-2021


-- 
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] gchen888 commented on issue #499: Unable to read from external storage using 'readAsBinaryString' method in Android 11

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


   @breautek Will there be any solution for this issue in the plugin in the foreseeable future?


-- 
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] erisu closed issue #499: Unable to read from external storage using 'readAsBinaryString' method in Android 11

Posted by GitBox <gi...@apache.org>.
erisu closed issue #499:
URL: https://github.com/apache/cordova-plugin-file/issues/499


   


-- 
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] bhandaribhumin edited a comment on issue #499: Unable to read from external storage using 'readAsBinaryString' method in Android 11

Posted by GitBox <gi...@apache.org>.
bhandaribhumin edited a comment on issue #499:
URL: https://github.com/apache/cordova-plugin-file/issues/499#issuecomment-938447920


   @breautek Thanks, Android-scoped-storage solves multiple problems. We are waiting for a new version like the [camera](https://github.com/apache/cordova-plugin-camera/blob/master/RELEASENOTES.md#600-aug-19-2021)


-- 
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