C# 二进制 输出图片

我们直接使用FileContentResult 类

  //将二进制转换成图片
  //pic在数据库中的存储类型是 image
  byte[] pic=
  FileContentResult file = new FileContentResult(pic, "image/jpg");

Microsoft 官网说明

posted @ 2021-04-01 16:13  清和时光  阅读(480)  评论(0编辑  收藏  举报