Download binary data (pdf or excel) into local disk


I want to save this binary data coming from email attachment here the data like excel file or pdf or image is there i want to save this data in local disk(my computer) how can i do that in same binary format.
Eg i have created a folder in my c drive with name n8n data i am fetching emails and their attachment after getting this attachment i want to save this in that n8n data folder.
Can someone help me with this?

Hello Niharika,

Use Read/Write Files from Disk node with write option on disk, it will allow you to specific location to save file. I have attached the screenshot.
I hope it will help you.

Hey, i have tried to use read write its executing and giving output but its not saved in local disk folder.


I want to save this pdf in my folder C:\N8N

You have used wrong path
it should be C://N8N/{{file_name}}

Its advisable to use other than C drive for windows, as C: used for system application.

I have test on my local and its working file, attached screenshot for the same

Please let me know if you still face any difficulty.