c# winform 上传图片到服务器

WebClient myWebClient = new WebClient();
                byte[] responseArray = myWebClient.UploadFile("服务器地址", "POST", "图片地址");
                string ass= System.Text.Encoding.UTF8.GetString(responseArray);

 

posted @ 2019-03-09 14:41  我爱京京  阅读(927)  评论(0编辑  收藏  举报