# WebAPI - upload binary data

**URL:** https://community.thunkable.com/t/webapi-upload-binary-data/3124038
**Category:** Web API's
**Created:** [August 2, 2024, 11:56pm UTC](https://community.thunkable.com/t/webapi-upload-binary-data/3124038 "2024-08-02T23:56:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Machinimush](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Machinimush](https://community.thunkable.com/u/Machinimush)
#### Post date: [August 2, 2024, 11:56pm UTC](https://community.thunkable.com/t/webapi-upload-binary-data/3124038/1 "2024-08-02T23:56:22Z")

</div>

I’m trying to take a photo, taken in my Thunkable app and stored locallly, and upload it to my Resourcespace asset management server via WebAPI. So far, I’ve managed to create a correct API call and get an HTTP error 415 reply from Resourcespace. This indicates an ‘Unsupported Media Type’ error.  
Resourcespace expects the file to be delivered via a POST request, as binary data.  
What I’m able to supply right now is just the local file path to the photo.

I can’t find anything on that in the Thunkable docs, and the last time someone asked a similar quesiton in September 2023, they didn’t get any answer.

Can anyone tell me if Thunkable supports uploading binary data in an API POST request?

---

<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: [August 5, 2024, 1:56pm UTC](https://community.thunkable.com/t/webapi-upload-binary-data/3124038/2 "2024-08-05T13:56:08Z")

</div>

Hi @Machinimush, I’m not sure about binary specifically being something you could with Thunkable without using some other API to convert the image. But we have had many users encode images using Base64, which is a way of encoding binary data. Check this post out below and let us know if this helps!

> [@\[Solved\] how do I base64 encode an image?](https://community.thunkable.com/t/solved-how-do-i-base64-encode-an-image/1858457):
>
> Hello, Do you know when “base64 encoding" will be available in thunkable drag and drop? Thank in advance Best regard
