{
  "name": "Learn how to use binary data in n8n (video included)",
  "nodes": [
    {
      "id": "1bae5406-b249-4fb7-b3de-54ec6ec26947",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -1312
      ],
      "parameters": {
        "width": 272,
        "height": 192,
        "content": "Can now access binary data from earlier nodes using expressions and the set node indcludes a new entry type to assign binary data directly. "
      }
    },
    {
      "id": "ab921bbc-bbe2-4289-920d-af6e51db6f81",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        192
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Example 6\nAccess binary data from previous nodes using expression:"
      }
    },
    {
      "id": "7b91b738-da19-4f4c-ac1a-cca5a71b2178",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -16
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Example 5\nNew type of entry in Set node to assign binary data:\n\nRename Example"
      }
    },
    {
      "id": "2d454fa0-d5a5-4693-b020-712ed2d0a38d",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        160,
        16
      ]
    },
    {
      "id": "b52cc779-994e-44d5-9312-6a624b52845a",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -1312
      ],
      "parameters": {
        "width": 368,
        "height": 192,
        "content": "How to access Binary Data\n\n(NODE).item.binary.BINARYNAME"
      }
    },
    {
      "id": "e68e6c7a-7a5c-4b53-8644-f69c1b7f8eec",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        176,
        208
      ]
    },
    {
      "id": "ebf2addb-2f54-4450-9ffd-1e87be656f06",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -1088
      ],
      "parameters": {
        "width": 672,
        "height": 144,
        "content": "Binary data is any file-type data, such as image files or documents\n\nConvert to File to take input data and output it as a file.\nExtract From File to get data from a binary format and convert it to JS"
      }
    },
    {
      "id": "f2886625-6953-4d1b-9f96-021af82bc3c2",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -896
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Example 1\nGetting Binary Data in n8n (Triggers/Form)\n\n4th data to show"
      }
    },
    {
      "id": "f5fcf4a1-7bc0-4e31-8f94-a5e794dd8531",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -688
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Example 2\nExtract from file node -> When doable"
      }
    },
    {
      "id": "cb94d8fd-cc78-4234-b80f-0354404937cd",
      "name": "Extract from File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        144,
        -688
      ]
    },
    {
      "id": "8cefcc12-8f3f-4bb4-83a9-c9012e3cf831",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -480
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Example 3\nExtract from file node -> When doable"
      }
    },
    {
      "id": "ed0837d3-bb4c-46c2-8d1c-4d9a33b56b63",
      "name": "Extract text",
      "type": "n8n-nodes-base.mistralAi",
      "position": [
        112,
        -464
      ]
    },
    {
      "id": "54a3ac8b-8fc3-445a-ab55-be93ef306543",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Example 4\nAnalyze an Image"
      }
    },
    {
      "id": "31e30ede-32f7-402a-99c6-9550947a5cce",
      "name": "Analyze an image",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        112,
        -256
      ]
    },
    {
      "id": "6487b055-d77a-4a8d-906d-ff2eb32d9cef",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -16,
        448
      ]
    },
    {
      "id": "1c59776f-9324-4ec6-9a5c-45948b5124a3",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        432
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Example 7\nConvert to File to take input data and output it as a file.\n\nConvert to file Video: https://youtu.be/Rpw3D4MjPo8\n"
      }
    },
    {
      "id": "a9c851a8-68db-4c31-a13a-996a7e40b126",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        160,
        -880
      ]
    },
    {
      "id": "c76f5eba-fe8f-4475-9c09-4a0ac4f4e72d",
      "name": "Convert to File2",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        416,
        704
      ]
    },
    {
      "id": "cc5b9e4c-0020-4aea-b6cc-fa4799d0786d",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        656
      ],
      "parameters": {
        "width": 304,
        "height": 304,
        "content": "## Example 8\nBase64 allows us to change format \nand bring it back to its original foramat\n\nAPIs give image as base64\n\nLook for example of a website with it\n\nPut in a variable\n\nhttps://www.base64-image"
      }
    },
    {
      "id": "7e94fca3-b1c9-4216-98eb-d8b2a4c03a8f",
      "name": "Edit Fields2",
      "type": "n8n-nodes-base.set",
      "position": [
        224,
        704
      ]
    },
    {
      "id": "f99634f0-090b-434a-958d-57fe51e6778a",
      "name": "On form submission1",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -80,
        16
      ]
    },
    {
      "id": "198be004-d67c-4870-8e81-16ada1ac84b4",
      "name": "FTP",
      "type": "n8n-nodes-base.ftp",
      "position": [
        368,
        -880
      ]
    },
    {
      "id": "d1a50ca7-a270-4b3b-9424-d8d9b747792e",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        224,
        464
      ]
    },
    {
      "id": "a073b718-efa2-44c3-8347-9d0f5e15e7fb",
      "name": "Edit Image",
      "type": "n8n-nodes-base.editImage",
      "position": [
        400,
        208
      ]
    },
    {
      "id": "75f71762-08a8-45dc-8202-9d8ff171332f",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        16,
        704
      ]
    },
    {
      "id": "087be633-3247-4e22-9269-ad168f19ece6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        -1328
      ],
      "parameters": {
        "width": 656,
        "height": 400,
        "content": "@[youtube](0Vefm8vXFxE)\n"
      }
    },
    {
      "id": "e564201a-b818-4b61-a508-7026a60d3b06",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -1504
      ],
      "parameters": {
        "width": 1392,
        "height": null,
        "content": "## Template & Tutorial created by Ryan & Matt Data Science on YouTube\nThanks for checking this template out. We have a video embedded going over how to use Binary files through multiple examples \n"
      }
    },
    {
      "id": "00faf9f4-e011-45ba-972a-6df7dbaab62a",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -64,
        -880
      ]
    }
  ],
  "connections": {
    "Edit Fields": {
      "main": [
        []
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Edit Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields2": {
      "main": [
        [
          {
            "node": "Convert to File2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission1": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Edit Fields2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}