# How do I make images saved to Stored Variables persist between app updates?

**URL:** <https://community.thunkable.com/t/how-do-i-make-images-saved-to-stored-variables-persist-between-app-updates/1813651>\
**Category:** Questions about Thunkable X\
**Created:** [April 1, 2022, 6:03pm UTC](https://community.thunkable.com/t/how-do-i-make-images-saved-to-stored-variables-persist-between-app-updates/1813651 "2022-04-01T18:03:50Z")\
**Posts on this page:** 5\
**Page:** 2

<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:** [April 25, 2022, 2:45pm UTC](https://community.thunkable.com/t/how-do-i-make-images-saved-to-stored-variables-persist-between-app-updates/1813651/21 "2022-04-25T14:45:08Z")

</div>

Hi @dani19130a

I’m revisiting your post again because as per your test, the picture file disappears but the `stored variables` persist.

If this is the case then saving the actual image as a `stored variable` should solve the issue. You see, now, you use the `stored variables` to save the **link or path** to the image in the user’s device and for some reason iOS removes or breaks such links on update but if you store the actual image in the variable then if will persist between updates.

You can use my demo app to convert the file to `Base64` and save the `Base64 string` to the stored variable.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 26, 2022, 2:43am UTC](https://community.thunkable.com/t/how-do-i-make-images-saved-to-stored-variables-persist-between-app-updates/1813651/22 "2022-04-26T02:43:32Z")

</div>

Awesome 👏

---

<div class="post-metadata">

**Author:** ![dani19130a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dani19130a/32/120952_2.png) [@dani19130a](https://community.thunkable.com/u/dani19130a)\
**Post date:** [April 26, 2022, 6:31am UTC](https://community.thunkable.com/t/how-do-i-make-images-saved-to-stored-variables-persist-between-app-updates/1813651/23 "2022-04-26T06:31:43Z")

</div>

Thank you @muneer

as I said before I made some test with your javascript but it is not working very well on Android. Sometimes the receive message function does not raise.

So, what I’m trying to do right now is to

- upload the photo to cloudinary
- use a backend api to retrieve the photo from cloudinary, trasforming it into base 64 format and then delete the photo from cloudinary
- return the base 64 to the app

I’m using the platform Backendless for the api, if everything will work properly I would like to share some code snippet of Backendless here in this conversation.

Please, let me know if it is possible to do that (I’m wondering if sharing code of another platform violates some rule) in order to help the community to solve the issue.

I will let you know  
Regards,  
D

---

<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:** [April 26, 2022, 1:47pm UTC](https://community.thunkable.com/t/how-do-i-make-images-saved-to-stored-variables-persist-between-app-updates/1813651/24 "2022-04-26T13:47:25Z")

</div>

That would be great. If you are using DnD then there is a `File Picker` which you can use.

About Code Snippet Sharing, It is OK to post here as long as it is Thunkable related and the source of the Snippet does allow this kind of sharing.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 25, 2022, 1:47pm UTC](https://community.thunkable.com/t/how-do-i-make-images-saved-to-stored-variables-persist-between-app-updates/1813651/25 "2022-07-25T13:47:43Z")

</div>

Closed on July 25, 2022, 1:47pm UTC

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

[Previous page](https://community.thunkable.com/t/how-do-i-make-images-saved-to-stored-variables-persist-between-app-updates/1813651.md?page=1)
