# Write node on Synology NAS

**URL:** <https://discourse.nodered.org/t/write-node-on-synology-nas/88430>\
**Category:** General\
**Tags:** docker\
**Created:** [1 June 2024 17:52 UTC](https://discourse.nodered.org/t/write-node-on-synology-nas/88430 "2024-06-01T17:52:00Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [3 June 2024 00:12 UTC](https://discourse.nodered.org/t/write-node-on-synology-nas/88430/7 "2024-06-03T00:12:17Z")

</div>

hi @Tomtom, the base64 node was only required to process the image ... in your case you need

1. have the /data folder mapped to your NAS drive (i think yopu done that already)
2. use the ReadFile (as in this example) to read a file into a buffer
3. use a WriteFile in the same way to write your bufer to file ... your can write fulle files or even append to existing files (see part of code below, this example is using another maped folder /backup)

```auto
[{"id":"c794ed735e3d2474","type":"template","z":"4a94dfcf.4b415","name":"csv","field":"filename","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"/backup/{{filename}}.csv","output":"str","x":2550,"y":2040,"wires":[["3b15d24fd60b70f8"]]},{"id":"3b15d24fd60b70f8","type":"file","z":"4a94dfcf.4b415","name":"","filename":"filename","filenameType":"msg","appendNewline":false,"createDir":true,"overwriteFile":"false","encoding":"none","x":2780,"y":2040,"wires":[["ede04ab6941e7084"]]},{"id":"ede04ab6941e7084","type":"debug","z":"4a94dfcf.4b415","name":"debug 108","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":2930,"y":2040,"wires":[]}]

```

have fun

---

_[View the full topic](https://discourse.nodered.org/t/write-node-on-synology-nas/88430)._
