I was able to receive the binary and save it as a file in AWS S3 but the file couldn't be opened. The file size suggests the bits are there but the format is wrong. I couldn't figure out what kind of binary it was. I even tried the npm file-type library to automatically detect the binary type but it failed and suggested that the file format was String. When I tried outputting the first few characters in the console, the output started with "PNG" and then some binary data.