0
我试图从服务器上下载的图像,存储在SD卡上,然后在BlackBerry 10如何使用PhoneGap的
显示它下载SD卡中的图像和保存在黑莓但我不能下载文件。
这是我的代码:
fileTransfer.download(
"http://smartphone.thnt.vn/VietGames/GhepTranhTu/IOS/update/" + anhup[i],
"file:///SDCard/downloads/" + anhup[i],
function (entry) {
sa = entry.fullPath;
alert("download complete: " + entry.fullPath);
if(i < anhup.length - 1) {
doDownload(i + 1);
} else {
alert("download done");
}
}, function (error) {
console.log("download error source " + error.source);
console.log("download error target " + error.target);
console.log("upload error code" + error.code);
}
);
感谢回应:/// pesident /下载“,我想保存到文件:/// SDCard/downloads。 – 2013-04-27 06:44:29