382
Views
4
Comments
Solved
Clearing Local Storage not release phone storage data
Question

Hi all, 

I create a mobile application (ios n android) to take a picture, store the picture binary in local storage, 

upload it to server, 

after uploaded the img to server, i will delete the local storage data, 

My question is, after i delete the local storage data, the application storage used in phone storage still the same, not reducing, 

is there anyway i release this storage in the phone?


Regards,

Ari

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

Hi Ari,

To my knowledge you cannot release that storage. SQLite has a VACUUM command to do that, but there's no way to send commands to the local storage from OutSystems. However, the storage space left behind by the binary will be reused a next time (assuming the next image isn't larger), so it's not like the storage will endlessly increase.

UserImage.jpg
ari auditianto

Hi Kilian, 

i notice that as well, the data storage not decreasing after i delete the image binary from outsystems local storage, but when i try to add new image, the storage data not increasing, so that storage space will be reused.

thanks for the response n explaination.

i will leave it as it is then.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Yeah, that's best I guess.

UserImage.jpg
pssker yamser

It may be that the deleted data have not been completely deleted .

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.