How do I download a binary file using the GitHub node?

Hi,

How am I supposed to download a binary file that I fetch with the “Get a file” feature of the GitHub node?

I see the file in my execution but it has a downlad button in it that I need to click manually, it seems. I put the binary data in the “data” field, but when I assign the data field to my email node as an attachment, nothing happens. In fact, the output of the GitHub node is the same as the code node that precedes it.

What am I missing?

I’m on version 1.118.2.

L

Hello @DupervalAI

If I understand you correctly, have you tried turning off the “As Binary Property” option?

2 Likes

I have (after sending my original post, I kept working on it). So I now see that I have the content in base64. So now I need to figure out how to send the attachment. I’ll do that tomorrow, cuz it’s too late now.…

Thanks,

L

Dang! It was much simpler than I thought. I’m so used to working with JSON that I was overcomplicating things.

The solution:

  • Set the “As Binary Property” to true
  • Give the property a name (data by default)
  • And put “data” in the attachment field of the email node

Easy peasy, and now it does what I want!

L

1 Like

Hey @DupervalAI,

I’m really glad I could help! :blush:
I just wanted to mention, since you marked the solution to your own reply, it might make others less likely to respond to your future questions,

If you mark the reply that led to the solution as the accepted one instead, it gives proper credit and helps keep the community more engaged..

But of course, totally up to you!

Hah, I hadn’t thought of that. I’ve seen so many people do it (not necessarily on this forum) that I thought it was the norm. Thanks for pointing that out!

L

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.