If you want to send binary data through a socket, you have to set it up with binmode:
binmode($socketname);
For a full exmaple, read A simple FTP server, see how it calls binmode when the data being FTP'd is image.
In reply to Re: Reading Binary Data via socket ( Converting program from java to perl )
by pg
in thread Reading Binary Data via socket ( Converting program from java to perl )
by petethered
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |