# Code blocks for this API Request

**URL:** https://community.thunkable.com/t/code-blocks-for-this-api-request/2498768
**Category:** Questions about Thunkable X
**Tags:** cloudinary, webapi
**Created:** [July 8, 2023, 10:58am UTC](https://community.thunkable.com/t/code-blocks-for-this-api-request/2498768 "2023-07-08T10:58:00Z")
**Posts on this page:** 1
**Showing post:** 5

<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: [July 10, 2023, 11:18am UTC](https://community.thunkable.com/t/code-blocks-for-this-api-request/2498768/5 "2023-07-10T11:18:56Z")

</div>

Hello @visualdisigner10ucqs welcome to the community!

Instead of using the “Image4’s Picture” block, you will need to use the response from the Web Viewer and the Web Viewer needs to have an HTML file that converts the image to base64.

To create the HTML file you can use the HTML code I shared here: [WEB API Firebase Storage It does not upload the file to the server - #4 by ioannis](https://community.thunkable.com/t/web-api-firebase-storage-it-does-not-upload-the-file-to-the-server/2369895/4)

Here is a post from the Cloudinary community about uploading an image as base64.  
[Uploading assets using a base64 DATA URI – Cloudinary Support](https://support.cloudinary.com/hc/en-us/articles/203125741-Uploading-assets-using-a-base64-DATA-URI#:~:text=In%20addition%20uploading%20assets%20from,by%20passing%20a%20remote%20URL.)

---

_[View the full topic](https://community.thunkable.com/t/code-blocks-for-this-api-request/2498768)._
