cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2206) Cordova's FileReader breaks when used with a Blob
Date Fri, 11 Jan 2013 16:16:12 GMT

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

Andrew Grieve commented on CB-2206:
-----------------------------------

The iOS crash happens because of the presence of an \x01 character in the file path. I don't
think this is worth fixing.
                
> 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

Mime
View raw message