# Difficulty converting Base64 string (from Imagen) to file!

**URL:** <https://community.n8n.io/t/difficulty-converting-base64-string-from-imagen-to-file/135044>\
**Category:** Questions\
**Tags:** data-transformation\
**Created:** [19 يونيو 2025، 2:27ص UTC](https://community.n8n.io/t/difficulty-converting-base64-string-from-imagen-to-file/135044 "2025-06-19T02:27:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bzakhary](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bzakhary](https://community.n8n.io/u/bzakhary)\
**Post date:** [19 يونيو 2025، 2:27ص UTC](https://community.n8n.io/t/difficulty-converting-base64-string-from-imagen-to-file/135044/1 "2025-06-19T02:27:54Z")

</div>

## 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

---

<div class="post-metadata">

**Author:** ![hubschrauber](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hubschrauber/32/46788_2.png) [@hubschrauber](https://community.n8n.io/u/hubschrauber)\
**Post date:** [19 يونيو 2025، 4:14ص UTC](https://community.n8n.io/t/difficulty-converting-base64-string-from-imagen-to-file/135044/2 "2025-06-19T04:14:31Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![bzakhary](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@bzakhary](https://community.n8n.io/u/bzakhary)\
**Post date:** [19 يونيو 2025، 4:17ص UTC](https://community.n8n.io/t/difficulty-converting-base64-string-from-imagen-to-file/135044/3 "2025-06-19T04:17:40Z")

</div>

Thank you!!!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [27 يونيو 2025، 8:28ص UTC](https://community.n8n.io/t/difficulty-converting-base64-string-from-imagen-to-file/135044/4 "2025-06-27T08:28:01Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
