【发布时间】:2017-02-26 18:44:34
【问题描述】:
我有List of objects,其中包含byte array 类型的属性,这是图像内容。当我从server to client 发送到JSON format 时,Internet Explorer 浏览器中有no response body。如果我send around 100 or 1000 rows给客户,没有问题。如果我发送more then 3000 行数据,则有no response body。是否有任何specific method or pattern 可以用来将字节数组的集合发送给客户端?
类型:
class Image
{
public byte[] Content { get; set; }
}
MVC:
var obj = new {
rows = Manager.GetImages() *//returns List<Image>*
};
return new JsonResult() {Data = obj, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
服务器通过 http 向客户端返回带有 Image 类型集合的 json
【问题讨论】:
-
会要求您发布执行发送的代码。
标签: c# .net http model-view-controller