# Write zip file to filesystem from BASE64 message object

**URL:** <https://discourse.nodered.org/t/write-zip-file-to-filesystem-from-base64-message-object/71938>\
**Category:** General\
**Created:** [9 December 2022 20:08 UTC](https://discourse.nodered.org/t/write-zip-file-to-filesystem-from-base64-message-object/71938 "2022-12-09T20:08:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rolo64](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rolo64](https://discourse.nodered.org/u/rolo64)\
**Post date:** [9 December 2022 20:08 UTC](https://discourse.nodered.org/t/write-zip-file-to-filesystem-from-base64-message-object/71938/1 "2022-12-09T20:08:48Z")

</div>

I have a message object that contains BASE64 data in payload.data, it's a ZIP file and I would like to save that zip file to the filesystem. I did some experiments with the write file node but no luck.  
Any tips on how to do this? Thanks!  
Example of object

```auto
msg.payload : Object
object
data: object
zip: "UEsDBAoAAAAAABGeiVUh79AKxQwAAMUMAAASAAAAY29uZmlndXJhdGlvbi55YW

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 December 2022 20:41 UTC](https://discourse.nodered.org/t/write-zip-file-to-filesystem-from-base64-message-object/71938/2 "2022-12-09T20:41:45Z")

</div>

Run it through a base64 node then write to file.

Search the palette for base64 node

---

<div class="post-metadata">

**Author:** ![rolo64](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rolo64](https://discourse.nodered.org/u/rolo64)\
**Post date:** [10 December 2022 13:14 UTC](https://discourse.nodered.org/t/write-zip-file-to-filesystem-from-base64-message-object/71938/3 "2022-12-10T13:14:46Z")

</div>

Thanks, I will give it a try.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 February 2023 13:14 UTC](https://discourse.nodered.org/t/write-zip-file-to-filesystem-from-base64-message-object/71938/4 "2023-02-08T13:14:59Z")

</div>

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