n8n Workflow
Beginner

Manually Read Local JPG Files

A simple n8n workflow to manually trigger and read all JPG binary files from a specified local directory on your server.

Overview

Manually reads all JPG image files from a specific server directory for further processing.

📄 Description & Use Case

This is a fundamental workflow designed to read binary files from a local directory on the server where n8n is running. It is manually triggered, making it ideal for on-demand file processing tasks.

🔄 How It Works:

  1. Manual Trigger

    • The workflow is initiated when you click the 'Execute Workflow' button. The On clicking 'execute' node starts the process.
  2. Read Files

    • The Read Binary Files node is activated. It is configured to look inside the /data/lol/ directory and read every file that ends with the .jpg extension.
    • The output of this node is a series of items, each containing the binary data of one JPG file, which can then be passed to other nodes for processing.

✅ Real-World Use Cases:

  • Batch Image Processing: Use this as the first step to resize, compress, or add watermarks to a folder of images before uploading them.
  • File Ingestion: Read local files (like images, PDFs, or documents) to ingest them into a digital asset management (DAM) system, a CMS, or cloud storage like S3 or Google Drive.
  • Data Migration: A simple way to grab a batch of files from a server's file system to move them into another application or service.
  • Workflow Testing: Quickly load local file data into a workflow to test subsequent nodes (e.g., an AI vision model or a file upload node) without setting up a complex trigger.

Instructions

Basic steps

  1. Download workflow JSON
  2. Import into n8n
  3. Configure node parameters as needed
  4. Test and enable the workflow

💡 Tips

After importing, verify all connectors and credentials match your environment.

Preview

Workflow Visualization

2 nodes
100%
On clicking 'execute'manualTriggerRead Binary FilesreadBinaryFiles

Nodes

1

On clicking 'execute'

manualTrigger

v1
2

Read Binary Files

readBinaryFiles

v1

Statistics

Total nodes:2
Disabled nodes:0
Node types:2
Connections:1
View full JSON structure
{
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        270,
        320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "Read Binary Files",
      "type": "n8n-nodes-base.readBinaryFiles",
      "position": [
        470,
        320
      ],
      "parameters": {
        "fileSelector": "/data/lol/*.jpg"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Read Binary Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Actions

Share
Categories:
Tags:
manualtriggerreadbinaryfiles

Technical Specs

Complexity:
Beginner
Node Count:
2 nodes
Published:11 months ago
Updated:about 2 months ago

Compatibility

Platform:
N8N Cloud & Self-hosted
Min Version:
N8N v1.0.0+
Supports cloud and self-hosted deployment

License

This workflow template follows MIT license, you can freely use, modify and distribute.

Please comply with relevant third-party service terms when using.

Related Workflows