Hi,
If that's okay with you, let's let the colleagues who have touched this part of 
the SDK give their opinion. If everything is fine for them, I can accept the PR 
myself.

Hiedra

-----Mensaje original-----
De: cont...@cristallium.com <cont...@cristallium.com> 
Enviado el: lunes, 25 de septiembre de 2023 9:01
Para: dev@royale.apache.org
Asunto: Re: BinaryUploader issue

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