# Sending base64 image to OpenAI Responses for AI Image Analyse

**URL:** <https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276>\
**Category:** Tips\
**Created:** [June 9, 2025, 12:54am UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276 "2025-06-09T00:54:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattblake](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mattblake/32/149474_2.png) [@mattblake](https://forum.bubble.io/u/mattblake)\
**Post date:** [June 9, 2025, 12:54am UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/1 "2025-06-09T00:54:30Z")

</div>

I found it surprisingly tricky to securely send an image to OpenAI for analysis, especially if you don’t want the image to be public or saved in your app’s file storage at all.

Difficulties began with the built-in Picture Uploader, Make Private and base64.

However, after some experimenting, I came up with a solution using the **Better Uploader** plugin. It lets you access the base64 version of an image without needing to store the file, which makes it perfect for sending securely to OpenAI.

Hope this helps someone else trying to do the same! Happy to answer any questions.

[![](https://img.youtube.com/vi/dzgZ_laQ2Dw/maxresdefault.jpg "Troubleshooting 3 Common Issues in Bubble.io: Image Analysis Guide with AI!") ](https://www.youtube.com/watch?v=dzgZ_laQ2Dw)

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [June 9, 2025, 4:08am UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/2 "2025-06-09T04:08:29Z")

</div>

Have you run into any issues with the size of the base64 encoded value? I was playing around with this a couple of weeks ago, and came across an issue with a larger image that the base64 encoded value had millions of characters and froze the app.

I do not know much about base64 encoded values so I didn’t attempt to investigate it further.

Do you know if the plugin is reducing the size of the image prior to creating the base64 encoded value so that it is not as long? When I ask ChatGPT about the length of base64 encoded values, specifically for images, it tells me the below.

 ![Screen Shot 2025-06-09 at 11.06.51 AM](https://us1.discourse-cdn.com/bubble/original/3X/0/e/0e7ec686914c747a83ff7ff1f6403a75ef71e212.png)

---

<div class="post-metadata">

**Author:** ![mattblake](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mattblake/32/149474_2.png) [@mattblake](https://forum.bubble.io/u/mattblake)\
**Post date:** [June 10, 2025, 12:14am UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/3 "2025-06-10T00:14:20Z")

</div>

Was it freezing in Workflow or just in the API Connector? I’ve found before I have to pick a small file to initialize but after that in workflow I haven’t had issues.

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [June 10, 2025, 12:51am UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/4 "2025-06-10T00:51:34Z")

</div>

Just don’t store base64 in database

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [June 10, 2025, 3:52am UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/5 "2025-06-10T03:52:06Z")

</div>

I wasn’t attempting to store it in DB, there is no reason for that.

> [@mattblake](#):
>
> Was it freezing in Workflow or just in the API Connector?

I think it was freezing in initialization. I’ll have to give it another shot, but I’m working on auto resizing, then conversion to webp and then compression so as to ensure smaller base64 payloads without losing clarity for AI to view image properly.

I started playing around with base64 payloads to AI for giving data from page to a chatbot and the idea of using the base64 rather than actual file is great, and to get the image sent without needing to upload to file manager is awesome as it will give more control over whether or not to actually upload to file manager based on AI analysis.

---

<div class="post-metadata">

**Author:** ![paigebetsy](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@paigebetsy](https://forum.bubble.io/u/paigebetsy)\
**Post date:** [July 25, 2025, 7:45am UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/6 "2025-07-25T07:45:10Z")

</div>

Bonjour

Je sais pas si tu peux m’aider mais j’ai également ce soucis . J’ai fais un prompt pour open ai . Ce prompt analyse très bien mes données textuelles. Cependant il n’analyse aucun photo . J’ai pu voir qu’il fallait faire une manip avec base 64 mais impossible

---

<div class="post-metadata">

**Author:** ![tony.macp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tony.macp/32/86604_2.png) [@tony.macp](https://forum.bubble.io/u/tony.macp)\
**Post date:** [January 15, 2026, 3:44pm UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/7 "2026-01-15T15:44:08Z")

</div>

awesome! thanks for this @mattblake , just what I was looking for 🙂

---

<div class="post-metadata">

**Author:** ![mattblake](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mattblake/32/149474_2.png) [@mattblake](https://forum.bubble.io/u/mattblake)\
**Post date:** [January 15, 2026, 4:48pm UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/8 "2026-01-15T16:48:40Z")

</div>

Glad I can be of help!

@georgecollier (hope you don’t mind me tagging you in here for a related question, you’re my go to Bubble security guru since I saw your webinar several years ago)… Is there a good way to both upload a file as private and share it with a third party to access? Like an upload .mp3 and then share the upload location with a transcription service. I’ve only come up against limitations.

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [January 15, 2026, 4:59pm UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/9 "2026-01-15T16:59:49Z")

</div>

Other than admin API token?

Your best route is base64.

If that doesn’t work (large files, unsupported format for the API), use some kind of intermediary like a Cloudflare worker that could act as a proxy. Claude Code will do that for you pretty easily and handle all deployment via Cloudflare CLI 🙂

e.g your worker might proxy `[workerUrl]/file-router?url=[your Bubble file URL without admin API token]` to the file by including your Bubble admin API token. So Cloudflare knows it; but your service doesn’t.

---

<div class="post-metadata">

**Author:** ![mattblake](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mattblake/32/149474_2.png) [@mattblake](https://forum.bubble.io/u/mattblake)\
**Post date:** [January 15, 2026, 5:01pm UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/10 "2026-01-15T17:01:18Z")

</div>

Appreciate you sharing your expertise. Slightly disappointing limitation. Good to know that Cloudflare workers are an option.

---

<div class="post-metadata">

**Author:** ![DjackLowCode](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/djacklowcode/32/222536_2.png) [@DjackLowCode](https://forum.bubble.io/u/DjackLowCode)\
**Post date:** [January 15, 2026, 5:23pm UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/11 "2026-01-15T17:23:19Z")

</div>

You could try the [file sharer plugin](https://bubble.io/plugin/file-sharer-1700959315598x627729431336058900) to share signed urls

---

<div class="post-metadata">

**Author:** ![randomanon](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@randomanon](https://forum.bubble.io/u/randomanon)\
**Post date:** [January 16, 2026, 1:46am UTC](https://forum.bubble.io/t/sending-base64-image-to-openai-responses-for-ai-image-analyse/372276/12 "2026-01-16T01:46:15Z")

</div>

> [@mattblake](#):
>
> I’ve only come up against limitations.

Let them know!

> [@Backend API workflows now support admin-only authentication](https://forum.bubble.io/t/backend-api-workflows-now-support-admin-only-authentication/389064/2):
>
> Thanks, this is an awesome update! In line with this update, here are a couple of updates which should be extremely high priority, listed in order of ease of implementation. Add an “Allow access to private files” option. The median Bubble app built in 2026 will necessitate uploading files to LLMs or other 3rd party services for analysis/etc. Right now the only way to allow these third parties access is to use a Bubble API token which, if compromised, would be a complete security disaster fo…

> [@georgecollier](#):
>
> Your best route is base64.

You can convert private files to base64? How does this work exactly?
