Issues saving S3 base64 PDF file locally in NodeJS
Currently, I need to save a PDF hosted on S3 locally in NodeJS. I’m able to get the base64 fine from AWS, but the issue is when I convert the base64 to binary and write to file stream, the resulting PDF file is broken. Looking at the file in VS Code, I see the base64 string instead of binary data. I confirmed that before I wrote to the file stream that the base64 was in binary before being passed, but still no luck.