ES | EN
Document Ops

Write JSON to Disk (Binary)

FunctionWrite Binary File
Nodes 3
Complexity Intermediate
Category Document Ops
n8n popularity 4,500 views in n8n library

The “Write Binary File” expects binary data. The JSON data is, however, JSON ;) There should really be a node that allows moving data around between both of them. For now, it can be done with a Function-Node. At least till a proper one is in place. The first node is example data, wich you can customize or replace. The second node named “Make Binary” is the important one with the custom code which makes the data binary and writes it to the correct location.

Apps and nodes included

Step-by-Step Implementation Guide

Automatización: Escribir Datos JSON a Disco (Binario)

Este workflow convierte datos JSON a formato binario y luego escribe el archivo binario en el disco. Esto es útil para almacenar datos en un formato optimizado.

Nodos Utilizados

  • Function: Convierte los datos JSON a binario.
  • Escribir Archivo (especificar el nodo de escritura binaria): Escribe el archivo binario en el disco.

Pasos de Configuración

  • Paso 1: El nodo de entrada debe proporcionar datos JSON. Estos datos se transformarán en un archivo binario.
  • Paso 2: Configura el nodo Function. Este nodo debe contener código que convierta el JSON a binario. Puedes usar la función `JSON.stringify()` para convertir el JSON a una cadena y luego convertir la cadena a binario.
  • Paso 3: Configura el nodo Escribir Archivo. Especifica la ruta donde se guardará el archivo binario, el nombre del archivo y el formato (binario).
⚡ Open and edit in Scriflow ← Browse all n8n templates

Scriflow builds and adapts n8n workflows with AI. Open this template in the editor to get the import-ready JSON.