360万条雷达数据通过ajax传输,json格式,报错,解决办法
/// <summary>
/// 获取一帧雷达数据
/// </summary>
/// <param name="companyId"></param>
/// <param name="Id"></param>
/// <returns></returns>
[HttpPost]
public ActionResult GetSARDataHandledByPath(string path)
{
GBSAR g = new GBSAR();
string filepath = Server.MapPath(path);
SARDataHandled sARDataHandled = g.GetSARDataHandled(filepath);
return new ContentResult
{
Content = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }.Serialize(sARDataHandled),
ContentType = "application/json"
};
//return Json(sARDataHandled);
}