⚡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:
-
Manual Trigger
- The workflow is initiated when you click the 'Execute Workflow' button. The
On clicking 'execute'node starts the process.
- The workflow is initiated when you click the 'Execute Workflow' button. The
-
Read Files
- The
Read Binary Filesnode is activated. It is configured to look inside the/data/lol/directory and read every file that ends with the.jpgextension. - 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.
- The
✅ 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
- Download workflow JSON
- Import into n8n
- Configure node parameters as needed
- Test and enable the workflow
💡 Tips
After importing, verify all connectors and credentials match your environment.
Preview
Workflow Visualization
2 nodes
100%
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.