我无法找到有关如何执行此操作的信息,所以我会在这里询问。
情况是我有一个响应类型为 FileContentResult 的 API。我有另一个 API 需要接收这个 FileContentResult。所以,我想真正的问题是,如何将 HttpResponseMessage 转换为 FileContentResult?我正在使用 System.Net.Http.HttpClient 将请求发送到返回 FileContentResult 的 API。谢谢
我无法找到有关如何执行此操作的信息,所以我会在这里询问。
情况是我有一个响应类型为 FileContentResult 的 API。我有另一个 API 需要接收这个 FileContentResult。所以,我想真正的问题是,如何将 HttpResponseMessage 转换为 FileContentResult?我正在使用 System.Net.Http.HttpClient 将请求发送到返回 FileContentResult 的 API。谢谢