111,131
社区成员
发帖
与我相关
我的任务
分享HttpClient client = new HttpClient();
MultipartContent content = new MultipartContent();
StorageFile file = await KnownFolders.DocumentsLibrary.GetFileAsync("test.si");
using (IRandomAccessStream stream = await file.OpenReadAsync())
{
MultipartContent form = new MultipartContent();
StreamContent fileContent = new StreamContent(stream.AsStreamForRead());
StringContent stringContent=new StringContent("test");
form.Add(fileContent);
form.Add(stringContent);
HttpResponseMessage msg = await client.PostAsync("http://localhost:2489/Convert/ConvertToPics",form);
}
