C# 无法在C中提供文件#
我有一个字节[],它包含表示图像的所有数据。如何在浏览器中将其作为实际图像提供?以下代码仅返回字节列表:-C# 无法在C中提供文件#,c#,wcf,file,bytearray,C#,Wcf,File,Bytearray,我有一个字节[],它包含表示图像的所有数据。如何在浏览器中将其作为实际图像提供?以下代码仅返回字节列表:- List<HubAsset> hubAsset = _core.GetHubAssets(query); byte[] file = Convert.FromBase64String(hubAsset[0].Data); return file; List hubAs
List<HubAsset> hubAsset = _core.GetHubAssets(query);
byte[] file = Convert.FromBase64String(hubAsset[0].Data);
return file;
List hubAsset=\u core.GetHubAssets(查询);
byte[]file=Convert.FromBase64String(hubAsset[0].Data);
返回文件;
这已经打开了:
您正试图将此作为WCF服务的响应发送?可能是重复的