# How can I display an image (downloaded from api) to Canvas on UI.

**URL:** <https://forums.unrealengine.com/t/how-can-i-display-an-image-downloaded-from-api-to-canvas-on-ui/1917595>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [June 26, 2024, 5:47pm UTC](https://forums.unrealengine.com/t/how-can-i-display-an-image-downloaded-from-api-to-canvas-on-ui/1917595 "2024-06-26T17:47:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesuisdarthvader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jesuisdarthvader](https://forums.unrealengine.com/u/jesuisdarthvader)\
**Post date:** [June 26, 2024, 5:47pm UTC](https://forums.unrealengine.com/t/how-can-i-display-an-image-downloaded-from-api-to-canvas-on-ui/1917595/1 "2024-06-26T17:47:57Z")

</div>

How can I display an image (downloaded from api) to Canvas on UI. I am creating a chatbox and want to show images fetched from an API. I can download images and show it on a plane but I am unsure how to show them in Canvas UI. Any suggestions are welcomed. Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [June 26, 2024, 6:04pm UTC](https://forums.unrealengine.com/t/how-can-i-display-an-image-downloaded-from-api-to-canvas-on-ui/1917595/2 "2024-06-26T18:04:24Z")

</div>

Hello,

Also, GOOGLE.

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [June 27, 2024, 10:43pm UTC](https://forums.unrealengine.com/t/how-can-i-display-an-image-downloaded-from-api-to-canvas-on-ui/1917595/3 "2024-06-27T22:43:16Z")

</div>

It’s my personal policy not to chat in messages, so:

Here is an example:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/b/2db4cc1e8c9f5d8b275647adc078b5df6165f60b.jpeg "How To Add Images To A Ui In Unreal") ](https://www.youtube.com/watch?v=GlPzFmA_CC8)

Just keep in mind that you have to **learn A LOT before you can do very little**.

---

<div class="post-metadata">

**Author:** ![jesuisdarthvader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jesuisdarthvader](https://forums.unrealengine.com/u/jesuisdarthvader)\
**Post date:** [June 27, 2024, 11:10pm UTC](https://forums.unrealengine.com/t/how-can-i-display-an-image-downloaded-from-api-to-canvas-on-ui/1917595/4 "2024-06-27T23:10:47Z")

</div>

Hi Leomerya12, Thanks a lot for the URL you sent. I’ve gone through this video before and it is a tutorial to add images to the UI, which isn’t my question here. I want to fetch an image from an API on runtime and display in the Chatbox Canvas UI.  
Also, _fetching an image and displaying on a plane is also done but that isn’t what I require_.  
For reference, I have created a chatbox by following this tutorial :  
[How to make Multiplayer Chat | Replication Tutorial | Kekdot | Unreal Engine 5 (youtube.com)](https://www.youtube.com/watch?v=PcfJiD6RTmo&t=625s)  
[[Unreal Engine] - Import Images During Runtime (youtube.com)](https://www.youtube.com/watch?v=3RDFEKDHRAk&t=310s)

I will greatly appreciate further help. Thank you.

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [June 28, 2024, 2:11am UTC](https://forums.unrealengine.com/t/how-can-i-display-an-image-downloaded-from-api-to-canvas-on-ui/1917595/5 "2024-06-28T02:11:12Z")

</div>

> [@jesuisdarthvader](#):
>
> I can download images and show it on a plane but I am unsure how to show them in Canvas UI.

You left out the “_at runtime_” which changes EVERYTHING. I’ve never worked with APIs so, I guess that mistake is on me.

I’m not watching that video to learn what you did. So, the best I can do is brainstorm with you, unless someone else knows exactly how to do what you want.

You’ll need a container class that can be populated with the desired objects (in your case, images).

This may help you:

> [@Stream an asset from the internet](https://forums.unrealengine.com/t/stream-an-asset-from-the-internet/295422/5):
>
> Sorry for the delay, I will post some code snippets this weekend. We had some delays in the release of the plugin ^^

This also may help. Or it will not, but I hope the former:

> **[Play a Video Stream in Unreal Engine | Unreal Engine 5.0 Documentation | Epic...](https://dev.epicgames.com/documentation/en-us/unreal-engine/play-a-video-stream-in-unreal-engine?application_version=5.0)**
>
> Shows how you can stream video from the internet and play it inside a UI element.

---

<div class="post-metadata">

**Author:** ![jesuisdarthvader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jesuisdarthvader](https://forums.unrealengine.com/u/jesuisdarthvader)\
**Post date:** [June 29, 2024, 5:40am UTC](https://forums.unrealengine.com/t/how-can-i-display-an-image-downloaded-from-api-to-canvas-on-ui/1917595/6 "2024-06-29T05:40:20Z")

</div>

That’s completely alright. This video focuses more on streaming a video and playing it inside a UI element, which isn’t a requirement right now. I reached out to @EliasWick on their Discord to seek a solution and received the following.  
So for anyone looking for a solution, I followed this tutorial :  
[[Unreal Engine] - Import Images During Runtime (youtube.com)](https://www.youtube.com/watch?v=3RDFEKDHRAk&t=382s)  
The URL can be called on a UI image instead of a plane, as shown in the video. The process is the same, except instead of a plane, you load the material on the UI image.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 29, 2024, 5:41am UTC](https://forums.unrealengine.com/t/how-can-i-display-an-image-downloaded-from-api-to-canvas-on-ui/1917595/7 "2024-07-29T05:41:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
