Re: Downloading binary data in widget
Posted: Thu Dec 09, 2010 8:00 pm
look at net player widget sources in app\scenes\Scene1.js found this
help you that?
Code: Select all
function saveUrl()
{
var fileSystemObj = new FileSystem();
if (urlArray.length>1)
{
var oFile=fileSystemObj.openCommonFile( FILE_URL, "w");
for(var i=1; i < urlArray.length; i++)
{
oFile. writeLine(urlArray[i]);
}
}
else
fileSystemObj.deleteCommonFile( FILE_URL);
fileSystemObj.closeCommonFile(oFile);
}