Base64 String to file not working

Describe the problem/error/question

Hello, I tried to search here and on discord but it can’t find a fix. I can’t transform a base64 string to file to then upload it to a S3, when pasting a base64 string and testing it give me an error, but when pasting the same string in any base64 decoder online it works fine.

What is the error message (if any)?

I’m getting the error The value in “iV…ErkJggg==” is not set [item 0].

Please share your workflow

Base64 for is generated by a HTTP Google Gemini call, then i try to convert it to a file

Share the output returned by the last node

N/A

Information on your n8n setup

  • n8n version: 1.83.2 (Self Hosted)
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): regular
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker

Thanks for your help

The input for Base 64 is not the base64 encoded binary, it’s the Input field name that contains the encoded binary.

Sorry to hijack this thread, but if have the same issue it seems.

I can hand over a Base64 String to a Set Node or to a Convert to Binary Node, it seems the string is empty everytime. If i copy the Base64-String to a Decoder i get the acutal Value of the String (PNG File).

To Set Node:

To Convert to Node

Do is miss something?

Sorry forgot to mention, i’m on 1.91.3 self-hosted.

After much try and error, i found out that the generated Base64 String wasn’t valid Base64.

I recreated the HTTP request via cURL from Stable Diffusion from scratch and now it’s working.