首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Windows Mobile >

windows phone 怎么用post方式提交图片流

2012-12-19 
windows phone 如何用post方式提交图片流通过post方式提交图片流,服务器端接收图片流的参数是ImageFile求

windows phone 如何用post方式提交图片流
通过post方式提交图片流,服务器端接收图片流的参数是ImageFile
求教!
[解决办法]
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
request.Method = "POST";  
在回调中
byte[] data = encoding.GetBytes(requestBody.ToString());


                HttpWebRequest webRequest = asyncResult.AsyncState as HttpWebRequest;
                Stream streamResult = webRequest.EndGetRequestStream(asyncResult);

                                //得到响应流
                streamResult.Write(data, 0, data.Length);
                streamResult.Flush();
                streamResult.Close();
[解决办法]
interested too..
[解决办法]
该回复于2012-08-27 08:52:36被版主删除

热点排行