# Upload IMAP attachments to cloud

**URL:** <https://community.n8n.io/t/upload-imap-attachments-to-cloud/25901>\
**Category:** Questions\
**Tags:** data-transformation, gmail, read-binary-file\
**Created:** [May 5, 2023, 9:11am UTC](https://community.n8n.io/t/upload-imap-attachments-to-cloud/25901 "2023-05-05T09:11:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saravicius](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/saravicius/32/60696_2.png) [@Saravicius](https://community.n8n.io/u/Saravicius)\
**Post date:** [May 5, 2023, 9:11am UTC](https://community.n8n.io/t/upload-imap-attachments-to-cloud/25901/1 "2023-05-05T09:11:24Z")

</div>

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:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/3/2329c87f8c1f23b32e2b978656d051c4829578c2.png)

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/a/7/a75cf4c2f164fc50f52955c876485c6c554e2249.png)

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? 🙂

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [May 9, 2023, 8:14am UTC](https://community.n8n.io/t/upload-imap-attachments-to-cloud/25901/3 "2023-05-09T08:14:10Z")

</div>

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:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/e/1/e10b92768738bae84bd65302e899e1302c560d1f.png)

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

Hope this helps 🙂

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 7, 2023, 8:15am UTC](https://community.n8n.io/t/upload-imap-attachments-to-cloud/25901/4 "2023-08-07T08:15:04Z")

</div>

Closed on August 7, 2023, 8:15am UTC

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