是否可以从FileResult中获取字节[]?

问题描述 投票:6回答:1

是否可以从C#中的byte[]中获取FileResult

c# asp.net-mvc bytearray fileresult
1个回答
11
投票
FileResultabstract类,因此不会成为基础的

instance

类型-假设使用了正确的overload,则应该可以将其强制转换为FileContentResult
© www.soinside.com 2019 - 2024. All rights reserved.