我们直接使用FileContentResult 类
//将二进制转换成图片 //pic在数据库中的存储类型是 image byte[] pic= FileContentResult file = new FileContentResult(pic, "image/jpg");
Microsoft 官网说明
C# 二进制 输出图片
原文:https://www.cnblogs.com/qingheshiguang/p/14606848.html