# Image Binary data pass to Claude

**URL:** <https://community.make.com/t/image-binary-data-pass-to-claude/38727>\
**Category:** Questions\
**Tags:** arrays, anthropic-claude, connections, json, api, mapping\
**Created:** [May 24, 2024, 12:10pm UTC](https://community.make.com/t/image-binary-data-pass-to-claude/38727 "2024-05-24T12:10:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manita112](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@Manita112](https://community.make.com/u/Manita112)\
**Post date:** [May 24, 2024, 12:10pm UTC](https://community.make.com/t/image-binary-data-pass-to-claude/38727/1 "2024-05-24T12:10:11Z")

</div>

I need to pass the message via Array to Claude.

current Error:  
“**The operation failed with an error. [400] messages.0.content.0.image.source.base64.data: The image was specified using the image/png media type, but does not appear to be a valid png image**”

Blueprint:  
[blueprint (4).json](https://community.make.com/uploads/short-url/9CD9JTqXTs83eStiaukyQXwCwCZ.json) (112.2 KB)

I get the Data from Airtable and loop over the images to create a Json and convert it in the last step to a Array for the request.  
It need to be dynamicly, because the image count is not fix. When i map the Claude module directly with the HTTP 34, it worked without issues.

 ![Bildschirmfoto 2024-05-24 um 13.40.42](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/7/c7f88717e1579dbe97f4ad865d52a26048f2b893.png)

Now i need to figure out, how i can pass the images through the request.  
If i dont wrap the data 54 in base64(), i can decode the image online correctly, after the wrapping its not possible.

I tried it to with base64(), toBinary(;base64), without converting

 ![Bildschirmfoto 2024-05-24 um 13.49.45](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/3/13372b48ff003a72ba603399d55766e05dd3ae91.png)

Have somebody a idea to fix this issue?

Thanks  
Jamie

---

<div class="post-metadata">

**Author:** ![TheWolfyAmongUs](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@TheWolfyAmongUs](https://community.make.com/u/TheWolfyAmongUs)\
**Post date:** [May 31, 2024, 1:04am UTC](https://community.make.com/t/image-binary-data-pass-to-claude/38727/2 "2024-05-31T01:04:24Z")

</div>

I could not get it to work with any amount of faffing around with the JSON structure and using the Claude Create a message module. I eventually had to resort to creating parts of the JSON together and stitching it all up. This meant passing the JSON as is, and hence using the HTTP module to do an API call. While I got it to work, the answer is still a complete and utter hallucination. I don’t know if you will have better luck then me.

[Blueprint (1).json](https://community.make.com/uploads/short-url/boQMiPQi4nFbV1ghyLqHroFE7n2.json) (42.7 KB)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/c/0c6b95967e6659b76d4f2c800d1cc91b1ea5e769.png)

The Image I passed

 ![1667x2500](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/4/2417cd7a7c18ecc7afc9de76f090fac8c8474fff.jpeg)

And the result it gave me when i asked it to describe the image

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/6/2634fbb8c5afef15e7b2a905e6bbadfa5d85aa86.png)

the other time it gave me something about a fox which was staring straight at the screen.

---

<div class="post-metadata">

**Author:** ![TheWolfyAmongUs](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@TheWolfyAmongUs](https://community.make.com/u/TheWolfyAmongUs)\
**Post date:** [May 31, 2024, 1:06am UTC](https://community.make.com/t/image-binary-data-pass-to-claude/38727/3 "2024-05-31T01:06:13Z")

</div>

I would recommend you use OpenAI if possible because the Make modules are more defined, and the JSON structure that OpenAI uses is… valid?

---

<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:** [August 29, 2024, 1:19am UTC](https://community.make.com/t/image-binary-data-pass-to-claude/38727/4 "2024-08-29T01:19:04Z")

</div>

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


