# How to get blocks to display assets?

**URL:** <https://community.thunkable.com/t/how-to-get-blocks-to-display-assets/1512891>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [September 18, 2021, 12:48pm UTC](https://community.thunkable.com/t/how-to-get-blocks-to-display-assets/1512891 "2021-09-18T12:48:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesteacher42q](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jamesteacher42q](https://community.thunkable.com/u/jamesteacher42q)\
**Post date:** [September 18, 2021, 12:48pm UTC](https://community.thunkable.com/t/how-to-get-blocks-to-display-assets/1512891/1 "2021-09-18T12:48:04Z")

</div>

I’ve had a search and I can’t find the answer. I’m making my first app (an ESL quiz app) and everything is working great except trying to display images. I was following the quiz app blocks guide: [Quiz App Blocks Walkthrough - YouTube](https://youtu.be/v8pNnBqKdjM)

I’ve tried 2 different ways to display the right image for the right question.  
1.  
I have a database with questions and answers. I want to display an image with each question. I have an ‘images’ column and in there I’ve put a URL to link to the image. I used a block like this…

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/9/391afcb6cc999b86aacf8b3af36c58afb65919e8.png)

but that didn’t work. It wouldn’t load the image.

1. I also have these images as assets. I named the images the same as their question number so I tried to use it with a block like this:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/b/4bf58df773396ae4ee01e19d10186e431813f3a3.png)  
(because the question number is the same as the image name).

To be clear. When the student is on question 1, I want it to display the question 1 image. When they’re on question 2, I want it to display the question 2 image. I want to build it in a way where I can simply add new lines to the database without having to add new blocks for every question.  
Please help.

---

<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:** [September 18, 2021, 1:21pm UTC](https://community.thunkable.com/t/how-to-get-blocks-to-display-assets/1512891/2 "2021-09-18T13:21:15Z")

</div>

The image component accepts a fully qualified URL and also it will accept the name of the asset in the project such as(image1.png)

You are using a variable named `Question Number`, what is in it?  
If it is a number then it will be used to get a data from the table but will not be used to assign a picture to the image component.

However, if the asset name is something like (image1.png, image2.png, image3.png,…)  
Then you can display the image using this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/8/9896c6997765cdcb638e23460dea65d7eeca5b1e.png)

---

<div class="post-metadata">

**Author:** ![jamesteacher42q](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jamesteacher42q](https://community.thunkable.com/u/jamesteacher42q)\
**Post date:** [September 20, 2021, 3:15am UTC](https://community.thunkable.com/t/how-to-get-blocks-to-display-assets/1512891/3 "2021-09-20T03:15:37Z")

</div>

This worked. Thank you so much!

I will use the assets for now and later try using URLs.

---

<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:15pm UTC](https://community.thunkable.com/t/how-to-get-blocks-to-display-assets/1512891/4 "2024-11-08T13:15:12Z")

</div>


