# Storing an audio file offline

**URL:** <https://community.thunkable.com/t/storing-an-audio-file-offline/76789>\
**Category:** Questions about Thunkable X\
**Created:** [May 22, 2019, 8:33pm UTC](https://community.thunkable.com/t/storing-an-audio-file-offline/76789 "2019-05-22T20:33:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg\_m1993](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@greg\_m1993](https://community.thunkable.com/u/greg_m1993)\
**Post date:** [May 22, 2019, 8:33pm UTC](https://community.thunkable.com/t/storing-an-audio-file-offline/76789/1 "2019-05-22T20:33:54Z")

</div>

Hi,

I’m looking to create an audio player which (when the user first accesses) streams an audio file from a URL. They then have the option to download it to the local device (so for future listens they don’t use any data). I would have assumed this would be the “LocalDB” component, but this is only for simple info so is unlikely to work for an audio file. It was suggested to store it as a stored variable, but I think this just stores the URL of the audio file rather than the audio file itself.

Is anyone able to clarify how I can go about doing this or if the functionality is within Thunkable to do this?

Much appreciated!

---

<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:** [May 23, 2019, 6:42am UTC](https://community.thunkable.com/t/storing-an-audio-file-offline/76789/2 "2019-05-23T06:42:12Z")

</div>

Hi,

The ability to save files locally in Thunkable X is not. But you can try to do this:

1. get the file url
2. using the service [http://api.foxtools.ru/v2/Help/Base64](http://api.foxtools.ru/v2/Help/Base64) convert it to text base64 format
3. save the resulting string to the local storage
4. get the string from the repository and play it through the WebViewer.

---

<div class="post-metadata">

**Author:** ![greg\_m1993](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@greg\_m1993](https://community.thunkable.com/u/greg_m1993)\
**Post date:** [May 23, 2019, 8:26am UTC](https://community.thunkable.com/t/storing-an-audio-file-offline/76789/3 "2019-05-23T08:26:25Z")

</div>

Maybe a newbie q, but when playing this through the web-viewer, would it need to be connected to the internet?

---

<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:** [May 23, 2019, 8:49am UTC](https://community.thunkable.com/t/storing-an-audio-file-offline/76789/4 "2019-05-23T08:49:22Z")

</div>

If you have saved data in the local storage, then an internet connection is not required.

---

<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:13pm UTC](https://community.thunkable.com/t/storing-an-audio-file-offline/76789/5 "2024-11-08T12:13:39Z")

</div>


