获取post过来的stream数据

来源:互联网 发布:战网安装不了 传输数据 编辑:程序博客网 时间:2024/06/05 02:55
using (Stream stream = HttpContext.Current.Request.InputStream)                {                    Byte[] postBytes = new Byte[stream.Length];                    stream.Read(postBytes, 0, (Int32)stream.Length);                    postString = Encoding.UTF8.GetString(postBytes);                }

0 0