# Problem to send Base64 to my Web API

**URL:** <https://community.thunkable.com/t/problem-to-send-base64-to-my-web-api/2178369>\
**Category:** Web API's\
**Tags:** beginner, help\
**Created:** [December 13, 2022, 11:43pm UTC](https://community.thunkable.com/t/problem-to-send-base64-to-my-web-api/2178369 "2022-12-13T23:43:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sammycri](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@sammycri](https://community.thunkable.com/u/sammycri)\
**Post date:** [December 13, 2022, 11:43pm UTC](https://community.thunkable.com/t/problem-to-send-base64-to-my-web-api/2178369/1 "2022-12-13T23:43:16Z")

</div>

Hello guys, i’m trying to receive a Base64 in my Web API from Thunkable application, i’m trying to do this with POST METHOD, but when my API receive the code all the " + " character in the Base64 is missing, failing the convertion to a image. Some one know what to do ? i’m using PHP to receive de Post.

i need to receive the Base64 like $\_POST[‘img’]

 ![ajuda garai](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/501bf5a3a56219bc1569e0273edd864339a586d0.png)

and this is my API script to convert the Base64 POST Method

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6cb7950e12a722ad9bb93325c49bc8b32e454e4d.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 14, 2022, 12:57pm UTC](https://community.thunkable.com/t/problem-to-send-base64-to-my-web-api/2178369/2 "2022-12-14T12:57:13Z")

</div>

Hello @sammycri  
Try to make the body as it is in the screenshot below

 ![Στιγμιότυπο οθόνης (1419)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6e229828c65ab5eb31ad035f9ac708ae170a19b5.png)

---

<div class="post-metadata">

**Author:** ![sammycri](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@sammycri](https://community.thunkable.com/u/sammycri)\
**Post date:** [December 14, 2022, 4:58pm UTC](https://community.thunkable.com/t/problem-to-send-base64-to-my-web-api/2178369/3 "2022-12-14T16:58:53Z")

</div>

dont work, send a empty post

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [December 14, 2022, 6:08pm UTC](https://community.thunkable.com/t/problem-to-send-base64-to-my-web-api/2178369/4 "2022-12-14T18:08:41Z")

</div>

You usually need to explicitly set a header as well. In this case `Content-Type : application/Json`

---

<div class="post-metadata">

**Author:** ![sammycri](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@sammycri](https://community.thunkable.com/u/sammycri)\
**Post date:** [December 14, 2022, 6:22pm UTC](https://community.thunkable.com/t/problem-to-send-base64-to-my-web-api/2178369/5 "2022-12-14T18:22:32Z")

</div>

> [@jared](#):
>
> application/Json

with “application/Json” my API catch nothing

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 14, 2022, 7:07pm UTC](https://community.thunkable.com/t/problem-to-send-base64-to-my-web-api/2178369/6 "2022-12-14T19:07:07Z")

</div>

It’s best to post a screenshot or link to your project each time you try something. Without seeing your blocks, we can’t really help!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:12pm UTC](https://community.thunkable.com/t/problem-to-send-base64-to-my-web-api/2178369/7 "2024-11-08T13:12:35Z")

</div>


