# How to store image in device from API Call

**URL:** <https://forum.webosose.org/t/how-to-store-image-in-device-from-api-call/971>\
**Category:** App Development\
**Created:** [January 8, 2020, 12:15pm UTC](https://forum.webosose.org/t/how-to-store-image-in-device-from-api-call/971 "2020-01-08T12:15:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitesh.kadiya](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mitesh.kadiya](https://forum.webosose.org/u/mitesh.kadiya)\
**Post date:** [January 8, 2020, 12:15pm UTC](https://forum.webosose.org/t/how-to-store-image-in-device-from-api-call/971/1 "2020-01-08T12:15:58Z")

</div>

I am developing an webos app using Angular 8.0.1 version. From angular I call a API and I get a response from server. I get base64 string of image as API response.

So I want to convert that base64 image string to Image and store to device. There may be so many images so localstorage is not useful. To store base64 string in inbuilt databse its also not useful. So suggest me how to store image in device

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [January 21, 2020, 8:40am UTC](https://forum.webosose.org/t/how-to-store-image-in-device-from-api-call/971/2 "2020-01-21T08:40:57Z")

</div>

Hi @mitesh.kadiya,  
Sorry for the late reply.

- Basically, a web app cannot access the file system.
  - There are some JS API that can be used to store the data but a stored location is determined by web engine.

One possible workaround is:  
Implementing your own service that provides an interface to the external storage.

Thanks
