You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "brian johnston (JIRA)" <ji...@apache.org> on 2014/04/30 07:26:16 UTC

[jira] [Created] (CB-6566) Windows 8 cannot read files

brian johnston created CB-6566:
----------------------------------

             Summary: Windows 8 cannot read files
                 Key: CB-6566
                 URL: https://issues.apache.org/jira/browse/CB-6566
             Project: Apache Cordova
          Issue Type: Bug
          Components: WP8
            Reporter: brian johnston
            Assignee: Jesse MacFadyen


The getFile fileEntry object comes back OK, except the values of fullPath, toNativeUrl and toURL are identical.  I already reported that.  However, the fileEntry.isFile says "true" so I assumed something was there.  However when I pass that fileEntry into a FileReader object and try to use reader to read the file I get the following results:

reader.readAsArrayBuffer and reader.readAsDataURL both throw a TYPE_MISMATCH_ERR.  I saw in the docs that readAsArrayBuffer is not supported on WP8, but I figured I'd try it anyway.

I got an error message on reader.readAsBinaryString saying that method is missing.  I'm not surprised about that since the HTML spec says it is deprecated anyway.









--
This message was sent by Atlassian JIRA
(v6.2#6252)