# Age old topic but not finding any solutions - Image to Base64 in DnD builder

**URL:** https://community.thunkable.com/t/age-old-topic-but-not-finding-any-solutions-image-to-base64-in-dnd-builder/3294858
**Category:** Questions about Thunkable X
**Tags:** help
**Created:** [October 23, 2024, 3:30pm UTC](https://community.thunkable.com/t/age-old-topic-but-not-finding-any-solutions-image-to-base64-in-dnd-builder/3294858 "2024-10-23T15:30:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tim.casson.smithpc](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@tim.casson.smithpc](https://community.thunkable.com/u/tim.casson.smithpc)
#### Post date: [October 23, 2024, 3:30pm UTC](https://community.thunkable.com/t/age-old-topic-but-not-finding-any-solutions-image-to-base64-in-dnd-builder/3294858/1 "2024-10-23T15:30:23Z")

</div>

Hi,

I’ll go straight to the point here, is there really no URL or image to base64 conversion method in the DnD builder? I am in need of this for an app I am building as the image will be parsed to Google Vision API which from my understanding needs the image to be in this format.

I am getting the image from either a camera photo using the camera component or the file picker to select an image from the device. I noticed that the file picker just stores a URL/URI of the location of the image.

Any suggestions (I have looked around for Web APIs that could do this preferable for free with no luck) please?

Thank you

Tim

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [October 24, 2024, 1:18pm UTC](https://community.thunkable.com/t/age-old-topic-but-not-finding-any-solutions-image-to-base64-in-dnd-builder/3294858/2 "2024-10-24T13:18:20Z")

</div>

Hi @tim.casson.smithpc, the conversion method is discussed in this topic:

> [@WEB API Firebase Storage It does not upload the file to the server](https://community.thunkable.com/t/web-api-firebase-storage-it-does-not-upload-the-file-to-the-server/2369895/4):
>
> Hello @whiterabbitstudio202 I’ve already created an app that uses the API Block to send an image file. I used Web Viewer and HTML code to convert the image file to base64 and then send it through the API. This is the code for HTML: \<!DOCTYPE html\> \<html\> \<body style="background-color:#18A2EB;"\> \<head\> \<meta charset="UTF-8" /\> \<meta name="viewport" content="width=device-width, initial-scale=1.0" /\> \<title\>Convert local file to Base64\</title\> \<script src="https://thunkab…

---

<div class="post-metadata">

### Author: ![tim.casson.smithpc](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@tim.casson.smithpc](https://community.thunkable.com/u/tim.casson.smithpc)
#### Post date: [October 25, 2024, 11:10am UTC](https://community.thunkable.com/t/age-old-topic-but-not-finding-any-solutions-image-to-base64-in-dnd-builder/3294858/3 "2024-10-25T11:10:24Z")

</div>

Thanks @matt_conroy for this - not being that familiar with this code , how would I pass an image directly from a camera to it without having to prompt the user to do this?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [January 23, 2025, 11:11am UTC](https://community.thunkable.com/t/age-old-topic-but-not-finding-any-solutions-image-to-base64-in-dnd-builder/3294858/4 "2025-01-23T11:11:16Z")

</div>

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