0

Firstly to export my csv export I used this method with JSInterop logic. And It works for small size file.

await JSRuntime.InvokeAsync( "FileSaveAs", fileName, noteContent );

I tried to download large size file .While InvokeAsync I got an error "The JSON value of length 475458916 is too large and not supported.'

SaveFile.js is like below:

function FileSaveAs(filename, fileContent) {
var link = document.createElement('a');
    link.download = filename;
    link.href = "data:text/plain;charset=utf-8," + encodeURIComponent(fileContent)
    document.body.appendChild(link);
    link.click();
    document.body.removeChild(link);}

My file size can be 2GBs, 1GBs. I researched blazor side for export operation But I only saw jsinterop example(my first sample) .

Note:I m also Using Devexpress Blazor for UI things.

Kle
  • 1,003
  • 2
  • 14
  • 24

0 Answers0