How to process amazon inventory file (binary)

I fetch an inventory report from amazon sellercentral. The module “download a report document” provides binary data.

The modules description says, that amazon delivers the files as gzip.

I already tried to handle the binary output as described by using the recommended Gunzip module from the Archive app, but I get errors.

How can one handle the downloaded binary from amazon seller report to use it as a file?

thx

Welcome to the Make community!

I know what’s the problem now, the encoding issue when downloading certain files.

I have mentioned a possible workaround for this here: Read text in .txt file stored in google drive - #4 by samliew

You can use a “Convert encoding” module using the same input and output encoding, then you can use the output of this module in your Parse CSV module.

Alternatively, you can simply try using the toString built-in function in the mapped field, something like this:   toString(data)

3 Likes