From 9fa0518d7ade4f2f131ab829df8886849724ed95 Mon Sep 17 00:00:00 2001 From: alsorokin Date: Mon, 13 Apr 2015 13:51:17 +0300 Subject: [PATCH] CB-8849 Fixed ReadAsArrayBuffer to return ArrayBuffer and not Array on WP8 --- www/FileReader.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/FileReader.js b/www/FileReader.js index 21ad29aca..5c523aa91 100644 --- a/www/FileReader.js +++ b/www/FileReader.js @@ -345,6 +345,9 @@ FileReader.prototype.readAsArrayBuffer = function(file) { // DONE state me._readyState = FileReader.DONE; + if (r instanceof Array) { + r = new Uint8Array(r).buffer; + } me._result = r; // If onload callback