I want to load a huge amount of base64 lines that was tied to image and audio controls in a kendo grid. But the data cannot load in the grid, I am trying to use more than 24 lines, this is normal. For more than 30 lines, it may not necessarily load into the grid. How to solve this problem? Someone help !!! I also compress this base64 line, it does not work properly. I want to compress the double size of the source file. Using file types: jpeg, wav, pcm, 3gpp and 3gp.
Here is my model
public byte[] MULTIMEDIANOTEDATA { get; set; }
public string strMULTIMEDIANOTEDATA { get; set; }
public string MULTIMEDIANOTEDATA64
{
get
{
return MULTIMEDIANOTEDATA != null ? Convert.ToBase64String(MULTIMEDIANOTEDATA) : null;
}
}
Here is my controller,
public ActionResult GetNoteItems([DataSourceRequest] DataSourceRequest request)
{
List<NotesModel> Notes = new List<NotesModel>();
List<NotesModel> lstNotes = (new CitationFactory(Session[Constants.Security.AIConnectionStringSessionVariableName].ToString())).GetNotes();
foreach (var item in lstNotes)
{
Notes.Add(new NotesModel
{
NOTEDATE = item.NOTEDATE,
NOTESMEMO = item.NOTESMEMO,
MULTIMEDIANOTEDATATYPE = item.MULTIMEDIANOTEDATATYPE.ToString().Replace("\"", ""),
MULTIMEDIANOTEFILENAME = item.MULTIMEDIANOTEFILENAME,
MULTIMEDIANOTEDATA = item.MULTIMEDIANOTEDATA,
});
}
int total = 0;
if (Notes.Any())
total = Notes.Count();
var result = new DataSourceResult
{
Data = Notes,
Total = total
};
var jsonResult = Json(result, JsonRequestBehavior.AllowGet);
jsonResult.MaxJsonLength = int.MaxValue;
return jsonResult;
}
source
share