Hello, everyone, how are you?
I believe the “Convert to File” node with the “Move Base64 string to a file” option is broken.
When sending the string to the “Convert to File” node, it appears to be converted, but the file is not rendered correctly.
I investigated for a few hours and performed a reverse conversion. I discovered that n8n is removing the characters at the beginning of the Base64 string: ":"
, "/"
, ";"
and ","
.
Like this:
Input: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGB...
Output: dataimage/jpegbase64/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGB
Could someone help me? Am I doing something wrong?
Thank you!
Information on my n8n setup
- n8n version: 1.73.1
- Database (default: SQLite): PostgreSQL
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker / Railway