XML Feeds

.

[java-dev] Arbitrary binary data with TcpSender?

topher lafata topher at topher.com
Wed Jan 9 14:52:31 MST 2008


Why don't you  encode your byte array into a hex string and send that?
Its pretty straightforward.
T

Peter Castine wrote:
> I need to build an object that can send arbitrary binary data via TCP. I was hoping to use mxj, in particular com.cycling74.net.TcpSender for this purpose. But on closer examination, TcpSender only seems to grok standard Max data types.-(
>
> I need to send largish (2-4kB) data structures of binary data to custom hardware, and the data simply does not parse into Atoms. Ideally I would like to simply pass a byte[] to a TcpSender, which does everything else I need quite handily. Is this possible? (Preparing the stream of bytes is not the problem, at least not yet!)
>
> Thanks -- P
>
>
> --
> Peter Castine
> --
> Peter is in dire need of a new Facebook tagline. Not to mention a new .sig
> _______________________________________________
> java-dev mailing list
> java-dev at cycling74.com
> http://www.cycling74.com/mailman/listinfo/java-dev
>
>   



More information about the java-dev mailing list