[zeromq-dev] How to send binary and text massage in one massage

Matias Guijarro matias.guijarro at esrf.fr
Thu Jan 10 09:23:06 CET 2013


Hi,

On 10/01/2013 9:16, Meir Yanovich wrote:
> now i want to keep the xml massaging and to add sending binary file on
> the wire from the server to client .
> what is the best approach to do it ?

Maybe the easiest is to keep the xml format for messages,
and to encode the binary file into base64 for example.

Or you can maybe use multi-part messages of zmq, first part
being xml and second (optional ?) part a binary chunk
corresponding to your file.

Cheers,
Matias.




More information about the zeromq-dev mailing list