[ 
https://issues.apache.org/jira/browse/CB-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Grieve resolved CB-2206.
-------------------------------

    Resolution: Fixed

Tested that this works on iOS & Android.
The test fails on pre-iOS6 and pre Android 3.0 though, since these browsers 
don't have a way to construct a Blob from JS.

js:
https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=d41650becbeee9d61860db06f7537898c0768987

mobile-spec:
https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;a=commit;h=fa02bfdb9627a01a14853f100d8006ff3c68ecdc
                
> Cordova's FileReader breaks when used with a Blob
> -------------------------------------------------
>
>                 Key: CB-2206
>                 URL: https://issues.apache.org/jira/browse/CB-2206
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 2.3.0
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>             Fix For: 2.4.0
>
>
> The follow code doesn't work as expected, and on iOS causes the app to crash.
>     var blob = new Blob([new DataView(buf)]);
>     var f = new FileReader();
>     f.onload = function(e) {
>       callback(e.target.result);
>     };  
>     f.readAsText(blob);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to