【发布时间】:2019-03-11 22:37:36
【问题描述】:
我的代码如下:
URL = "https://abcde.com/api//export/1234.wav?type=wav";
HttpResponseMessage response = client.GetAsync(URL).Result;
显示的是"StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent"
StreamContent是一个wav文件,文件名为1234.wav。
如何在 C# 中从HttpResponseMessage Steam Content response 下载 wav 文件?
非常感谢。
【问题讨论】:
-
使用“HttpClient 客户端”,而不使用“等待”