码迷,mamicode.com
首页 > Web开发 > 详细

从HttpRequestMessage的Content中同步读取Stream

时间:2017-05-21 10:49:00      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:article   sage   bsp   pop   http   post   word   transform   form   

??
代码例如以下:

var sc = Request.Content;

                using (MemoryStream tempStream = new MemoryStream())
                {
                    sc.CopyToAsync(tempStream).Wait();

                    tempStream.Seek(0, SeekOrigin.Begin);
                }

从HttpRequestMessage的Content中同步读取Stream

标签:article   sage   bsp   pop   http   post   word   transform   form   

原文地址:http://www.cnblogs.com/jzdwajue/p/6883960.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!