我可以下载一个 SVG 文件,此外,我可以像通常在图像标签中一样显示 svg 文件。我不知道如何访问用于下载的文件夹位置或 wgt-private 文件夹,因此我可以将图像下载到客户端的手表,然后使用下载的版本。我确定我的文件正在下载,因为我已经通过控制台登录成功下载,当我列出目录中的项目时,文件就会显示出来。放置下载/[文件名] 或 wgt-private/[文件名] 似乎不起作用,因为这些是虚拟文件位置,但是我不知道如何在不使用文件系统方法的情况下在应用程序中访问这些文件。下载:var download_obj = new tizen.DownloadRequest('someFile.svg', 'wgt-private');//Hidden the actual location however this file does display when enterting the whole file location tizen.download.start(download_obj, { onprogress: function(id, receivedSize, totalSize) { console.log(id); console.log(receivedSize); console.log(totalSize); }, onpaused: function(id) { console.log(id); }, oncanceled: function(id) { console.log(id); }, oncompleted: function(id, fullPath) { console.log(id); console.log(fullPath); }, onfailed: function(id, error) { console.log(id); console.log(JSON.stringify(error)); } });完整路径为:wgt-private/someFile.svg不显示为在所有尝试中都在控制台中显示文件错误。
添加回答
举报
0/150
提交
取消