http://www.perlmonks.org?node_id=232201

ph0enix has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,
I'm writing server and need to send binary data to clients. As base class Net::Server::Multiplex is used. It is easy to serve text (all data witten to STDOUT are send to client and data written to STDERR are send to server log) but I want to send binary data. Simple binmode STDOUT; does not work because the tied interface used and IO::Multiplex::Handle does not implement method "BINMODE".

Suggestions? Example code?

Replies are listed 'Best First'.
Re: Net::Server::Multiplex - serving binary data?
by zengargoyle (Deacon) on Feb 03, 2003 at 14:21 UTC

    are you sure you need it? i've always thought that sockets were immune from the MS binmode wierdness.

Re: Net::Server::Multiplex - serving binary data?
by Three (Pilgrim) on Feb 03, 2003 at 14:23 UTC

    Why not go old school and UU Encodeing of binary to text.

    Here is the results of a search on cpan for uu encodeing.