var response = Request.CreateResponse(HttpStatusCode.OK);
 response.Content = new ByteArrayContent(data);  //data为二进制图片数据
 response.Content.Headers.ContentType = new MediaTypeHeaderValue("image/png");

 return response;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2021-12-23
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案