I`m trying to create a file downloader as a background service but when a large file is scheduled, it\'s first put in memory and then, at the end of the download the file is
Instead of holding the content into memory in the "data" event listener you should write to the file in append mode.
"data"