work with char arrays

Hello programmers! My english not very well, I'm from Russia.

Here is my problem.
We need to transmit a string, the size of the string we can calculate.

the string is consist of BYTE elements. (-256~255)

How can we sent all this BYTE's?

symbol "|" also must be coded - it's special symbol using in my protocol.
Is it possible to sending messages this way?
There are a number of ways to do this. Here is one way: http://cr.yp.to/proto/netstrings.txt

I'm not sure what to do about your pipe symbol. Send the entire text base64-encoded?
Thank U.

I cant use base64 text. And the problem was not there:) simply I decoding message wronly.
Topic archived. No new replies allowed.