# Read files ios thunkable

**URL:** <https://community.thunkable.com/t/read-files-ios-thunkable/40071>\
**Category:** Questions about Thunkable X\
**Created:** [August 9, 2018, 7:34am UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071 "2018-08-09T07:34:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlenia\_scarpelli](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jlenia\_scarpelli](https://community.thunkable.com/u/jlenia_scarpelli)\
**Post date:** [August 9, 2018, 7:34am UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/1 "2018-08-09T07:34:35Z")

</div>

Good morning, I have a problem with thunkable ios.  
I have to read the contents of a file that I have attached in the files section and I do not know how to do it. Is there an instruction in the blocks part that allows me?

---

<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:** [August 9, 2018, 4:20pm UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/2 "2018-08-09T16:20:15Z")

</div>

If it is an image file, its contents can be read via WebViewer in base64 format, if you attach it to the tag. But it is not easy to do.

---

<div class="post-metadata">

**Author:** ![jlenia\_scarpelli](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jlenia\_scarpelli](https://community.thunkable.com/u/jlenia_scarpelli)\
**Post date:** [August 10, 2018, 5:38pm UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/3 "2018-08-10T17:38:58Z")

</div>

thank you so much

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [August 10, 2018, 5:45pm UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/4 "2018-08-10T17:45:03Z")

</div>

Note that if it is an image file, you could just use name of the file (as it is shown in the files list) as the Picture property of an Image component. See [here](https://docs.thunkable.com/thunkable-cross-platform/create/components/image/image) for documentation details.

For many other types of file you should be able to just use the name of the file as the URL for the Web Viewer. See [here](https://docs.thunkable.com/thunkable-cross-platform/create/components/user-interface/web-viewer).

-Mark

---

<div class="post-metadata">

**Author:** ![yanito](https://avatars.discourse-cdn.com/v4/letter/y/85f322/32.png) [@yanito](https://community.thunkable.com/u/yanito)\
**Post date:** [August 12, 2018, 12:37am UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/5 "2018-08-12T00:37:05Z")

</div>

Hi Mark, I want to know can image data from image component save to localstorage? or localstorage only save text of image file name/url?

I see cache property in image component, is cache function implemented? I want to make offline feature for my app. Thanks.

---

<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:** [August 12, 2018, 10:03am UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/6 "2018-08-12T10:03:43Z")

</div>

Hi,

You can save images to Local Storage in the format of base64.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [August 12, 2018, 6:48pm UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/7 "2018-08-12T18:48:05Z")

</div>

@yanito, How are you obtaining the image data? Is it from one of the names in your local files list or is it via some remote URL?

-Mark

---

<div class="post-metadata">

**Author:** ![yanito](https://avatars.discourse-cdn.com/v4/letter/y/85f322/32.png) [@yanito](https://community.thunkable.com/u/yanito)\
**Post date:** [August 12, 2018, 11:04pm UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/8 "2018-08-12T23:04:28Z")

</div>

via remote URL like web api or airtable attachment.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [August 12, 2018, 11:14pm UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/9 "2018-08-12T23:14:32Z")

</div>

@yanito, I’m afraid that we don’t currently support saving remote image data to Local Storage. As @actech points out, there might be some complicated workarounds but, as he says, it’s pretty difficult to do and might not always work.

-Mark

---

<div class="post-metadata">

**Author:** ![yanito](https://avatars.discourse-cdn.com/v4/letter/y/85f322/32.png) [@yanito](https://community.thunkable.com/u/yanito)\
**Post date:** [August 12, 2018, 11:19pm UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/10 "2018-08-12T23:19:57Z")

</div>

@Mark thank you for answer, I will try @actech base64 solution, but it only work with image or api I control, not 3rd party web api. thanks.

---

<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, 12:00pm UTC](https://community.thunkable.com/t/read-files-ios-thunkable/40071/11 "2024-11-08T12:00:48Z")

</div>


