Ways of storing application data at application level In ROKU
Posted By Prashant Grover | 12-Apr-2017
Roku provides you serveral ways of storing application data/files at application level, sometimes the requirement arises to store some credentials in an application to avoid fetching the data from server everytime, below mention are those several methods :
1. Temporary storage : Roku provides mechanism to store the data in tmp: folder. ,the only drawback of storing data in tmp: folder is that it gets deleted when application exits. We can read and write data in tmp: folders i.e we can access and modify the data.
2. Package Storage : Roku provides mechanism to access any files from application package i.e pkg: from package folder we can only read data/files roku does not provide mechanism to modify or delete any files from pkg:
3. USB device : Roku provides mechanism to access any files/data from usb media form usb media we can only read data/files roku does not provide mechanism to modify or delete any files. Infact this medium of application storage is not supported by all roku devices.
4. Registry : Roku provides mechanish to read/write data in registry, the big advantage of this method is that the data is retained when the application exits and it also get retained when the system gets reboot due to this reason itis mostly used from others, but there is a drwback also and i.e its size is limited each channel has access to 16 kb of registry space.
The filename components in a pathname may not contain any of these characters:
< > : " / | ? *
nor any whitespace or non-printable character.
reg = CreateObject("roRegistry")