# HTTP Get a File receives Binary instead of JSON

**URL:** <https://community.make.com/t/http-get-a-file-receives-binary-instead-of-json/23199>\
**Category:** Questions\
**Tags:** http, json\
**Created:** [January 2, 2024, 9:17pm UTC](https://community.make.com/t/http-get-a-file-receives-binary-instead-of-json/23199 "2024-01-02T21:17:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BENCDD](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@BENCDD](https://community.make.com/u/BENCDD)\
**Post date:** [January 2, 2024, 9:17pm UTC](https://community.make.com/t/http-get-a-file-receives-binary-instead-of-json/23199/1 "2024-01-02T21:17:23Z")

</div>

Greetings all together,

I’m trying to retrieve a JSON file via a webhook, but I only get back binary data from HTTP (Get a File) that I can’t parse. I need the data to send it field by field to Google Sheets.

As you can see, the webhook contains the link to the json file. When I copy the link into the browser, the download starts. But when I try to get it via HTTP module, it only gets file.bin data.

Whats the issue? Thanks a lot!

 ![CleanShot 2024-01-02 at 22.13.24@2x](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/f/efe57205d3f63ff2e01d12f8b233e096d0926ffb.jpeg)

 ![CleanShot 2024-01-02 at 22.14.05@2x](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/b/7b1c0cd273bdd5d3ba2e74df5bab5fb67c236e7e.jpeg)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [January 3, 2024, 1:22am UTC](https://community.make.com/t/http-get-a-file-receives-binary-instead-of-json/23199/2 "2024-01-03T01:22:40Z")

</div>

Welcome to the Make community!

The problem is 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](https://community.make.com/t/read-text-in-txt-file-stored-in-google-drive/15278/4)

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 JSON module.

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

---

<div class="post-metadata">

**Author:** ![BENCDD](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@BENCDD](https://community.make.com/u/BENCDD)\
**Post date:** [January 3, 2024, 8:43am UTC](https://community.make.com/t/http-get-a-file-receives-binary-instead-of-json/23199/3 "2024-01-03T08:43:33Z")

</div>

Thanks @samliew,

this could work, but requires a separate operation. I prefer the solution of using the toString function, which is also mentioned here: [How to download a file that requires authentication - #4 by Callinetic](https://community.make.com/t/how-to-download-a-file-that-requires-authentication/6766/4)

But in case this doesn’t work under any circumstances, I have your solution in mind.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 17, 2024, 8:42am UTC](https://community.make.com/t/http-get-a-file-receives-binary-instead-of-json/23199/4 "2024-01-17T08:42:23Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


