I am trying to implement an feature with read a large data file in Blazor Webassambly
public async Task OnInputFileChange_org(InputFileChangeEventArgs e)
{
var singleFile = e.File;
long maxFileSize = 1024L * 1024L * 1024L * 2L;
var stream = singleFile.OpenReadStream(maxFileSize);
var fileBuffer = new byte[stream.Length];
var res = readData(fileBuffer)
}
I always get error:
Supplied file with size 8113469 bytes exceeds the maximum of 15360 bytes.
Is this the limit in Blazor Webassambly? Or how can I solve this problem?
Thanks for the help.
New contributor
DEVE Mack is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.