# Google Docs upload/replace B64 Image

**URL:** <https://community.n8n.io/t/google-docs-upload-replace-b64-image/47684>\
**Category:** Questions\
**Created:** [June 2, 2024, 9:18pm UTC](https://community.n8n.io/t/google-docs-upload-replace-b64-image/47684 "2024-06-02T21:18:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxp](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mxp/32/6293_2.png) [@mxp](https://community.n8n.io/u/mxp)\
**Post date:** [June 2, 2024, 9:18pm UTC](https://community.n8n.io/t/google-docs-upload-replace-b64-image/47684/1 "2024-06-02T21:18:45Z")

</div>

Hello,  
i have a google doc template in a shared drive. I’m able to duplicate the template on the shared drive, replace text, and also adding a bullet list using a batchupdate api call.  
I need to put an image in base64 format “data:image/png;base64,XXXX” in a specific place on that document. Can someone point me some guidance? Thank you.

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [June 2, 2024, 9:18pm UTC](https://community.n8n.io/t/google-docs-upload-replace-b64-image/47684/2 "2024-06-02T21:18:46Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![ThinkBot](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/thinkbot/32/62172_2.png) [@ThinkBot](https://community.n8n.io/u/ThinkBot)\
**Post date:** [June 2, 2024, 9:23pm UTC](https://community.n8n.io/t/google-docs-upload-replace-b64-image/47684/3 "2024-06-02T21:23:55Z")

</div>

There’s a couple starting point options in this solution:

> <https://stackoverflow.com/questions/67528073/how-can-i-embed-a-base64-image-into-a-google-doc>

You can take that info and take a look at this solution, we can use the Move Binary Data node to convert the base64 into an image, which should be able to be directly uploadable to drive (or you can try directly, not sure), then attach the drive image:

> [@Base64 to Image convert - Cloud version n8n@0.161.1](http://community.n8n.io/t/base64-to-image-convert-cloud-version-n8n-0-161-1/11560/2):
>
> Check the example below.

Justin - [thinkbot.agency](https://blog.thinkbot.agency)

---

<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:** [August 31, 2024, 9:24pm UTC](https://community.n8n.io/t/google-docs-upload-replace-b64-image/47684/4 "2024-08-31T21:24:03Z")

</div>

Closed on August 31, 2024, 9:24pm UTC

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