【发布时间】:2020-02-01 10:49:36
【问题描述】:
如何将 URL 从 Webapi 传递到 <img> 标记。我已将图像转换为base64 string 并以varbinary 的形式插入Database。
<img src="https://localhost:44381/api/Account/get-resource-image;data:image/jpg;base64" alt="img"/>
【问题讨论】:
-
请为该问题添加一些代码。这看起来不清楚......
-
localhost:44381/api/Account/get-resource-image;data:image/…" alt="img"/>
-
这是我通过 Url 的代码
-
同时为你的 webapi 函数提供代码。
标签: c# html angularjs asp.net-web-api base64