Projects > cpp > Issues > Bug #3279

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

XMLHttpRequest receives wrong binary array

Bug #3279 [Closed]
dumganhar 2013-11-26 08:23 . Updated about 3 years ago

Reproduce step:

var xhr = new XMLHttpRequest();
        xhr.responseType = "arraybuffer";
        xhr.open("GET", "http://hdsgs1.res.uqee.com/hdsg/res/images/scene/npc_move/nwg.png");
        xhr.onreadystatechange = function() {
            if (xhr.status == 200) {
                var arrayBuffer = xhr.response;

                if (arrayBuffer) {
                    var byteArray = new Uint8Array(arrayBuffer);
                    var s = '';
                    for (var i=0;i
dumganhar 2013-11-26 13:32
  • Description updated (diff)
dumganhar 2013-11-27 03:26
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:d10ae0cff7f1c1b6c46ce83ddeeded24fa03a616.

Atom PDF

Status:Closed
Start date:2013-11-26
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

100%

Category:js
Target version:3.0-beta

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.