【发布时间】:2017-07-29 05:32:22
【问题描述】:
我要将 .html 文件 (byte[]) 从我的数据库加载到
public byte[] file { get; set; }
我确实尝试过但失败了:
public FileResult QuestionHTML(byte[] requestFile)
{
byte[] file = requestFile;
return File(file, "application/html");
}
然后在查看cshtml:
$("#chgit").attr('src', '@Url.Action("QuestionHTML", Model.Questions[0].file)');
结果:
Request URL Too Long
HTTP Error 414. The request URL is too long.
请需要一些帮助。谢谢。
【问题讨论】:
标签: javascript jquery html asp.net iframe