Hi,

I have make a PR to fix the issue (https://github.com/apache/royale-asjs/pull/1234)

Could you merge it ?

Thanks

Le 2023-09-21 10:34, cont...@cristallium.com a écrit :

Hi All,

I try to send binary data with BinaryUploader .

In short I do this :

var ba:BinaryData = new BinaryData();
ba.writeByte(255);
ba.writeByte(256);
ba.writeByte(-256);

ba.position = 0;

var bup:BinaryUploader = new BinaryUploader();
bup.url = "http://.....";;

bup.method = HTTPConstants.POST;

bup.binaryData = ba;
bup.send();

This works fine except that I receive the following : "[object ArrayBuffer]"

Looking at source of BinaryUploader.as, the issue is on line 577 :binaryData = _binaryData.data.toString()

_binaryData.data.toString() convert ArrayBuffer to "[object ArrayBuffer]"

Do I miss something ?

Regards

Reply via email to