I am sending an array of float using JsonResult Object. The float array has 13M items and it represents a wav file :
public JsonResult GetWavFile()
{
//...
var jsonResult = Json(floatArray, JsonRequestBehavior.AllowGet);
jsonResult.MaxJsonLength = int.MaxValue;
return jsonResult;
}
I am getting the exception OutOfMemoryException.
This link talks only about ciruclar reference which is not my case. And when the float array is under 2M of items it works without any exception. Any ideas please how to solve this problem ? (I prefer not using chunks)