

I noticed that some people use a solution based on reading files, in the other words, after download finishes, them read the stored file from the disk.

I'm not sure if that's the correct approach. With such code above, I would intend to detect the event of the download dialog and then, in some way, be able to receive the binary content. I tried (unsuccessfully) to use the page.on("response") event to retrieve the raw response content, acording the following snippet: const bucket = Īwait page.on("response", async response => Looking for some examples in the web, I noticed that there is a lot of people with this problem.

So far I wasn't able to find out some solution. I want to get the download content (buffer) and after soon, store the data at my S3 account.
