I received the contents of a text file returned in binary values:
Byte[] buf = new Byte[size]; stream = File.InputStream; stream.Read(buf, 0, size);
How can I convert this to ASCII?
Use:
string str = System.Text.Encoding.ASCII.GetString(buf);
System.Text.Encoding.ASCII.GetString(buf);