Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2206

Cordova's FileReader breaks when used with a Blob

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • cordova-js
    • None

    Description

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

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            agrieve Andrew Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: