You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Samer Albahra (JIRA)" <ji...@apache.org> on 2017/10/09 22:12:00 UTC

[jira] [Commented] (CB-13208) File plugin on Windows reads entire file into memory when only a small fragment is requested on `readAsBinaryString`

    [ https://issues.apache.org/jira/browse/CB-13208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16197767#comment-16197767 ] 

Samer Albahra commented on CB-13208:
------------------------------------

Can we get some sort of response on this?

> File plugin on Windows reads entire file into memory when only a small fragment is requested on `readAsBinaryString`
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-13208
>                 URL: https://issues.apache.org/jira/browse/CB-13208
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-file
>    Affects Versions: 6.5.0
>         Environment: All Windows UAP applications
>            Reporter: Samer Albahra
>
> `readAsBinaryString` for `FileReader` on Windows is reading the entire file to a buffer then slicing the requested fragment causing the app to crash due to out of memory errors. It should instead be using a stream which seeks to the requested start position and only reads the requested length.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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