Binary Data through XMLSocket :
---
How we can send binary data through XMLSocket.I have been able to receive
binary data but not been able to send binary data through XMLSocket i tried
using Array
but it automatically inserted commas between the elements of Array.Is
No, not really.
If you can wait until Flash Player 9, the AS3 Socket object handles binary
data natively.
Peter
On 5/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Binary Data through XMLSocket :
---
How we can send binary data through XMLSocket.I have been
And FWIW, you will have all kinds of problems using XMLSocket for binary
data, in either direction. For example, when receiving binary data, if there
is a null byte, the byte will be considered to be a packet delimiter, and
will be removed (and preceding data will be passed as a string to
:01 +0100
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] binary data Flash !
And FWIW, you will have all kinds of problems using XMLSocket for binary
data, in either direction. For example, when receiving binary data, if there
is a null byte, the byte will be considered
Peter is right. I had all kinds of issues with certain Jabber XMPP
servers that wouldn't return the null byte at the end of stanzas.
XMLSocket definitely needs this. And as he says, if it receives one of
those suckers in the middle of one of your packets, it's going to
trigger the onMessage
Yes. If you have an existing binary connection, that you need to interface
with, I'd suggest handling it on the server and translating it into
something that you can handle in Flash. If XML is ok, then you can easily
create socket servers in Python, PHP, Java,... etc. Otherwise, you can use
AMF
6 matches
Mail list logo