# \[Solved\] how do I base64 encode an image?

**URL:** <https://community.thunkable.com/t/solved-how-do-i-base64-encode-an-image/1858457>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, base64\
**Created:** [May 2, 2022, 2:31pm UTC](https://community.thunkable.com/t/solved-how-do-i-base64-encode-an-image/1858457 "2022-05-02T14:31:31Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 4, 2022, 4:31pm UTC](https://community.thunkable.com/t/solved-how-do-i-base64-encode-an-image/1858457/21 "2022-05-04T16:31:03Z")

</div>

The last one is easy. An image from `Canvas` is already in Base64 format. You just need to use this block  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/9/a94388f3b677065d5441a8101e3b0635e23fa74c.png)

The other two requires either AJAX or Node.js libraries if needed as independent extensions but the `image from photo library` and `image from camera` are already supported by my `Web Viewer` so practically it is all supported.

See this screenshot

 ![Screenshot_2022-05-04-19-31-17-07_c31b32364ce19ca8fcd150a417ecce58](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/b/3bd92313e0d80594ede3dabd37808120f0101e2d.jpeg)

Once you click on the `Choose File` button you are prompted to select between camera or files in your mobile.

---

_[View the full topic](https://community.thunkable.com/t/solved-how-do-i-base64-encode-an-image/1858457)._
