Convert from base64 to image/jpeg produce 0 bytes

Describe the problem/error/question

When I trying to convert a lot of images from base64 to binary in my “Convert to File” node - they are all 0 bytes. But when I trying to convert 1-5 images it`s ok. Why so? Check out my flow below with 1 item. But here are screen with 66 items:

What is the error message (if any)?

No error messages.

Please share your workflow

Information on your n8n setup

  • n8n version: 1.103.2 self hosted
  • Database (default: SQLite): def
  • n8n EXECUTIONS_PROCESS setting (default: own, main): def
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker compose
  • Operating system: ubuntu

Hi Ivan!

You probably hit the If the memory limit or processing time of your system.

The easy solution would be to split the files processing in batches (using the “Loop Over Items” Node before the “Convert to File” - batch size: 1 to 5 to keep it stable.

A more complex solution would be:

  • Increase memory limits
    Raise Node.js memory to 4 GB using the --max-old-space-size option.
  • Switch binary data to filesystem mode
    Set N8N_BINARY_DATA_MODE=filesystem and define a local storage path to avoid RAM overload.

Hope that helps!
All the best!