Joey Lee <jo*********@hotmail.com> wrote:
Does anyone know how I am able to write a utf-8 encoded binary string into
binary file?
Currently I am given a UTF-8 string which was read from a gif image.
That's a really, really bad idea. You can't just read arbitrary data
and assume it's a valid UTF-8 encoded string.
If you wish to turn arbitrary data into text, I suggest you use Base64
(see Convert.ToBase64String and Convert.FromBase64String).
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too