> OK, I'll try the Base64 method.... It is more efficient to use a simple escape mechanism. Let's say your delimiter is #13#10 (this is handy if you test with telnet). The select another character which is likely to be infrequently use in your binary data. Let's assume it is #127. Then it is enough to scan all you binary data, check for #13, #10 or #127 characters and replace them by - respectively - #127 'M', #127 'J' and #127 '/' (or any other couple you like). The nul char is also frequently escaped. Si replace #0 by #127 '0'. At the other side, just do the reverse: scan data to find #127, then examine next character to know which one to use instead of the pair which is the 'escaped value'.
-- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be