amrinder_singh
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2012
03:29 AM
Save File to Roku (Local Memory of Roku)
Hi,
I am trying to save an XML file on Roku for some development purpose. is this possible ..?
If yes, Please help me?
Thanks.
I am trying to save an XML file on Roku for some development purpose. is this possible ..?
If yes, Please help me?
Thanks.
2 REPLIES 2

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2012
10:21 AM
Re: Save File to Roku (Local Memory of Roku)
You can save files to tmp:/ but they will evaporate when you exit the channel. If it is less than 16k you might try to save it in your registry. You can download using roURLTransfer's gettofile() or you could use gettostring() and save to the registry or write to a file using writeasciifile()
- Joel
- Joel
belltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2012
10:28 AM
Re: Save File to Roku (Local Memory of Roku)
Assuming the XML file is already on your development computer:
If you have a file, file.xml, you can put the file in your top-level development directory (the one containing the 'source' directory and 'manifest' file, etc.) and it will be available from your code after you side-load it to the Roku. You can access it using the file-name: pkg:/file.xml
Or, you can create a directory under your top-level directory, e.g. 'xml' and put your xml files there. You can access them as: pkg:/xml/file.xml
If you have a file, file.xml, you can put the file in your top-level development directory (the one containing the 'source' directory and 'manifest' file, etc.) and it will be available from your code after you side-load it to the Roku. You can access it using the file-name: pkg:/file.xml
Or, you can create a directory under your top-level directory, e.g. 'xml' and put your xml files there. You can access them as: pkg:/xml/file.xml