moshen / node-googlemaps

A simple way to query the Google Maps API from Node.js
MIT License
559 stars 148 forks source link

The binary output from the static map API needs to be checked. #159

Open MidasXK opened 2 years ago

MidasXK commented 2 years ago

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.