想上面这个图片POST过来的参数,C#怎么获取啊???
我用HttpContext.Current.Request.Form.AllKeys;只有前面3个值,最后一个
Content-Disposition: form-data; name="pic"; filename="pic.jpg"
Content-Type: image/pjpeg这个没有获取到怎么全都获取到呢??
我用HttpContext.Current.Request.Form.AllKeys;只有前面3个值,最后一个
Content-Disposition: form-data; name="pic"; filename="pic.jpg"
Content-Type: image/pjpeg这个没有获取到怎么全都获取到呢??
最后一个图片的二进制值是 HttpPostedFile file = HttpContext.Current.Request.Files["pic"]获取的
然后通过file.InputStream把流写入HEADER里