作为string split空格,然后一个个填入Byte[]里面就可以了啊
第二个问题不明白啥意思
s.Split(" ").Select(b => Byte.Parse(b, System.Globalization.NumberStyles.HexNumber)).ToArray()
HttpWebRequest hwr = HttpWebRequest.Create(请求的URL);
HttpWebResponse responce = hwr.GetResponse();
Stream stream = responce.GetResponseStream();
stream.Write(Encoding.Default.GetBytes(s));
应该是你要的吧!
byte[] buffer = Encoding.GetEncoding(....).GetBytes(str);