Upload IMAP attachments to cloud

Guys, please help me understand what is “binary” as a file attachment I receive from the IMAP email server with an email message.

In my case it looks like this:

I am bit new, but don’t even get it with data I need to use as binary data and how to use it for example to upload file to Google Drive or make HTTP request and put a file in Cloud.

Anyone can give a hand? :slight_smile:

Hi @Saravicius, in your screenshot the name of your binary object would be attachment_0. This is how n8n would refer to it and the key you’d use in subsequent nodes.

So if you have a node producing an attachment_0, you can access it under that name:

Here’s an example workflow, first downloading a dummy file, then uploading it to Google Drive:

Hope this helps :slight_smile:

1 Like