# Use of images without assigning to component

**URL:** <https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374>\
**Category:** Questions about Thunkable X\
**Tags:** image\
**Created:** [July 27, 2019, 12:39pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374 "2019-07-27T12:39:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 27, 2019, 12:39pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/1 "2019-07-27T12:39:05Z")

</div>

I’m trying to ‘apply’ an **image** that I’ve uploaded to the app designer as a **property of an object** , but I can’t seem to find if it is possible as I can only use the block assigned to the image component to retrieve the actual image.

BTW, i just found out that I can’t set it as a property, I’ll see if I can make a list of images.

Hope I explained myself, thx.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 27, 2019, 12:58pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/2 "2019-07-27T12:58:55Z")

</div>

Why did you decide that this is impossible?

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 27, 2019, 1:00pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/3 "2019-07-27T13:00:55Z")

</div>

I just tried to attach the block “from image x get the image” to the object propoerty but it says I can’t

 ![cant%20attach%20image%20to%20list%20Screenshot_2019-07-27%20Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/e/4e4ed5e50d9c4ae6a5545ddfaf2845a857996f29.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 27, 2019, 1:06pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/4 "2019-07-27T13:06:14Z")

</div>

Do this in a function, not directly in initialize. This is a well-known nuance. Or try this join through the text “join” block

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 27, 2019, 1:08pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/5 "2019-07-27T13:08:56Z")

</div>

Like “add the picture to the end of the list”, or “set the object property to picture x”?

I just tried this and gives no error, maybe I can use this?

![image%20to%20database%20Screenshot_2019-07-27%20Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/5/55d8ce181e189f98562529d8daba58a944762ca7.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 27, 2019, 1:09pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/6 "2019-07-27T13:09:14Z")

</div>

![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/9/7986d8bc9fafecc707f11017973e30f307634098.png)

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 27, 2019, 1:12pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/7 "2019-07-27T13:12:19Z")

</div>

Ok Ok many thanks as always.

So I’m noticing that this works with **databases, lists and objects**.

Thx

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 27, 2019, 2:06pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/8 "2019-07-27T14:06:07Z")

</div>

BTW, can you confirm that I can’t access an image that I uploaded to the app if I don’t assign it to some component and only from there I can retrieve it?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 27, 2019, 3:02pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/9 "2019-07-27T15:02:20Z")

</div>

If an image is loaded into a project, then it can be accessed by specifying the file name in the text block

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 27, 2019, 3:15pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/10 "2019-07-27T15:15:17Z")

</div>

BTW, the “_set object property_” is not working 😕

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2019, 9:46am UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/11 "2019-07-28T09:46:29Z")

</div>

Can you show blocks that don’t work? While I have not seen this.

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 28, 2019, 2:10pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/12 "2019-07-28T14:10:35Z")

</div>

I get set the image as a property of the object as the screen starts, then I clone a button and row/labels/buttons and set them specific names and images that are properties of objects in a list of objects

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2019, 2:13pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/13 "2019-07-28T14:13:40Z")

</div>

Sorry, but I did not understand that this does not work.

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 28, 2019, 2:41pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/14 "2019-07-28T14:41:03Z")

</div>

I think the problem is this “in list x getobject number y”, or pictures are not allowed as objects properties.

I tried using a normal list and it works, but I can’t have the “j” position in the list as it gives 0 for every “j” object in the list  
 ![Screenshot_2019-07-28%20Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/3/d337a4ed13717c6e2caa395cc10007155888f2d0.png) ![2%20Screenshot_2019-07-28%20Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/e/5e21a1d435a7a439833fc5b0aba9386c8df65434.png)  
 ![3%20Screenshot_2019-07-28%20Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6b917231b64e0716c3452a1ac4e1b919e7ea21a0.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2019, 4:33pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/15 "2019-07-28T16:33:55Z")

</div>

The Picture property is just a text string. How can it not be resolved?

You are trying to build a house from the roof, so there are difficulties. Try to start with a simple foundation:

1. See what type of data the Picture property is.
2. Сreate new Screen and object.
3. Сonnect the “get picture” block to this object.
4. In the image component show the image obtained from the object property.

If this does not work out, then the error is in the blocks.

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 28, 2019, 5:26pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/16 "2019-07-28T17:26:33Z")

</div>

Right, I tested as you said a very basic one and it worked, so now I’m stepping up from there, and this is not working already.

 ![4%20Screenshot_2019-07-28%20Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/5/756401000efa82900bba8780bee6a6e917167e33.png)

I get the value that is set in the object’s property but not the image I set as the screen opens.

I think I’m stuck.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2019, 5:30pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/17 "2019-07-28T17:30:48Z")

</div>

I’ll show you an example now.

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 28, 2019, 5:31pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/18 "2019-07-28T17:31:23Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 28, 2019, 5:58pm UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/19 "2019-07-28T17:58:31Z")

</div>

I understood the problem. The point is in the type of the variable. If you use a global variable, it will not really work. This is surprising.

For this reason, I try to use variable functions that work as expected.

[https://x.thunkable.com/projects/5d3ddbda9288fa6ca26ec7d3/project/properties/designer/](https://x.thunkable.com/projects/5d3ddbda9288fa6ca26ec7d3/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 29, 2019, 8:33am UTC](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374/20 "2019-07-29T08:33:46Z")

</div>

Ok, very good thx, but as @Mark told you that kind of behaviour might change in the future so it’s risky to base a part of the app on that.

Btw, since you can upload objects to firebase, I’m curious to see how it will work if you set an image as an object’s property.

BTW, how do you create functions variables without the function? Do you just delete it after you create the variable?

[Next page](https://community.thunkable.com/t/use-of-images-without-assigning-to-component/158374.md?page=2)
