Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

93
Views
save big amount of data as file in angular

im using angular and express server, in one of my routes im sending to the client large amount of csv data in chunks. im capturing the csv chunks in angular and i need to genreate a csv file from the chunks but im getting heap out of memory error becuase i can't find a way to write to the file in chunks so i just collect all the data and then save it to a file. does someone know how to write to a csv file in chunks? much appreciated.

this is my code of saving the file (need to replace it):

constlink = document.createElement("a"); 
const blob = new Blob(['\uFEFF' +event['data']],{type:'text/csv; charset=utf-18'});
link.href = window.url.createObjectUrl(blob);

link.download = "aDefaultFileName.csv";
document.boy.appendChild(link);
link.click();


link.innerHTML = "Click here to download the file";

document.body.appendChild(link); 
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!