Difficulty converting Base64 string (from Imagen) to file!

Describe the problem/error/question

I am using a Convert File node to convert a base64 string into a png file. The base64 string is the output of the preceding node - an HTTP Request node that calls Imagen via API to convert text from a story into an image. It is clear the output of the HTTP Request node is not empty. And, in fact, when I past the string into an online base64 to png converted, I get an image back. However, I keep getting this error.

What is the error message (if any)?

Problem in node ā€˜Convert to Fileā€˜

The value in ā€œiVBORw… [base64 string] … kSuQmCCā€ is not set

Please share your workflow

Information on your n8n setup

  • **n8n version: 1.98.0
  • **Database (default: SQLite): not sure - default?
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): not sure - default?
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • **Operating system: Windows

The Base64 Input Field value in the Convert to File node needs to be the name of the input field, not a reference to the field’s base64 text value.

Not an expression like: {{ $json.body.... }}
Just a fixed string like: data

1 Like

Thank you!!!