簡體   English   中英

通過HTTP向客戶端發送字節數組時,操作緩慢且沒有響應主體

[英]Slow Operation And No Response Body When Sending Byte Array Over HTTP To Client

我有List of objects其中包含byte array類型的屬性,即圖像內容。 當我以JSON formatserver to client ,Internet Explorer瀏覽器中no response body 如果我send around 100 or 1000 rows客戶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給客戶端

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM