Trying to get file via HTTP then upload to S3

Hi folks, wondering if anyone could help please… I had posted this a couple of days a go on another thread but had not seen a response yet.

Basically I can get a file via HTTP.get (or node “response”) and then send to AWS S3… but I can’t read the file and must be doing something wrong with encoding or perhaps something more serious is messed up.

Anyway, please see details below.

Any help appreciated.

thanks

Continuing the discussion from Base64 encode an image from a URL on server: