# How to convert a PRIVATE file to Base64?

**URL:** <https://forum.bubble.io/t/how-to-convert-a-private-file-to-base64/263581>\
**Category:** APIs\
**Created:** [May 19, 2023, 5:32pm UTC](https://forum.bubble.io/t/how-to-convert-a-private-file-to-base64/263581 "2023-05-19T17:32:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![martingoldschmid](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@martingoldschmid](https://forum.bubble.io/u/martingoldschmid)\
**Post date:** [May 19, 2023, 5:32pm UTC](https://forum.bubble.io/t/how-to-convert-a-private-file-to-base64/263581/1 "2023-05-19T17:32:01Z")

</div>

Hi,

**I need to make a Post api request to send a file converted to Base 64,**

The built in Bubble workflow functionnality “myFile: encoded in Base 64” **only works with PUBLIC file and not with private files.** (if you toggle the “make this file private” in the file uploader).

I am currently looking for a solution, but only found plugins that works with public files.

I wonder if somebody found a solution to this, either custom code or third party service, because if you need to handle Private files and send them via API, it seems that you can’t do it with Bubble at this moment.

Thank you guys for your help on this,

Martin

---

<div class="post-metadata">

**Author:** ![joaoanzolim](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@joaoanzolim](https://forum.bubble.io/u/joaoanzolim)\
**Post date:** [May 19, 2023, 5:47pm UTC](https://forum.bubble.io/t/how-to-convert-a-private-file-to-base64/263581/2 "2023-05-19T17:47:36Z")

</div>

Try it:

> **[Bubble Back End Utilities Plugin for Bubble, by Aaron Sheldon](https://bubble.io/plugin/bubble-back-end-utilities-1620673970192x112120583001473020)**
>
> Bubble Back End Utilities Plugin page on Bubble, by Aaron Sheldon. Add Bubble Back End Utilities in one click to your app. Bubble lets you build web apps without any code.

---

<div class="post-metadata">

**Author:** ![martingoldschmid](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@martingoldschmid](https://forum.bubble.io/u/martingoldschmid)\
**Post date:** [May 20, 2023, 12:54pm UTC](https://forum.bubble.io/t/how-to-convert-a-private-file-to-base64/263581/3 "2023-05-20T12:54:04Z")

</div>

Hello, thank you for forwarding this plugin,  
I tried it and **it seems to be working with Bytes only** , the list of functions is here:

- “UTF8 to Base 64” encode any UTF8 string to a base 64. Returns a string containing the base 64 encoded string.
- “Bytes to Base 64” encode a list of numbers in base 64. Returns the base 64 encoded string.

I guess with this plugin I need to find a way to convert the file into bytes.  
Did you try the plugin and found a solution to convert a Private file to Base 64?

Thanks for your kind help
