[Standards] Binary data over XMPP
ghudson at MIT.EDU
Mon Nov 5 14:53:41 UTC 2007
On Mon, 2007-11-05 at 15:35 +0100, Tomasz Sterna wrote:
> You cannot use out-of-the-box XML parser anyway.
SAX-model XML parsers still qualify as "out of the box."
> So, once <blob/> is extracted from the stream and reported,
> you stop feeding the data read from socket to parser, and fetch it
> directly for routing.
By the time you have received an event reporting the blob element, you
have potentially already fed it a chunk containing the <blob/> and some
of your binary data.
(Unless you're handing it characters one by one, or being careful to
never feed chunks which contain a > character except at the end. Either
is inefficient and hackish.)
More information about the Standards