【问题标题】:Cannot serve out file in C#无法在 C# 中提供文件
【发布时间】:2010-11-01 18:32:29
【问题描述】:

我有一个 byte[] 包含代表图像的所有数据。如何在浏览器中将其作为实际图像提供?下面的代码只返回一个字节列表:-

List<HubAsset> hubAsset = _core.GetHubAssets(query);
            byte[] file = Convert.FromBase64String(hubAsset[0].Data);                               
            return file;

【问题讨论】:

标签: c# wcf file bytearray


【解决方案1】:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-04-11
    • 2021-01-09
    • 1970-01-01
    • 1970-01-01
    • 2015-12-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多