[英]How to download any file in PhoneGap using C# Webservice
I have no idea of how to download a file using a C# web service. 我不知道如何使用C#Web服务下载文件。
Please help me with the following C# code. 请使用以下C#代码帮助我。
var fileTransfer = new FileTransfer();
var uri = encodeURI("http://some.server.com/File.docx");
fileTransfer.download(
uri,
downloadPath,
function(entry) {
console.log("Download compelete: " + entry.fullPath);
},
function(error) {
console.log("Download error source " + error.source);
console.log("Download error target " + error.target);
console.log("Upload error code" + error.code);
},
false
);
But I don't want to give a URL like this. 但我不想提供这样的网址。 I want to download through Webservice.
我想通过Webservice下载。 Is it possible?
可能吗?
Your question is very vague. 您的问题非常模糊。 I would suggest adding more details to try and get more answers.
我建议添加更多详细信息以尝试并获得更多答案。 I can make the following recommendations for you to look into:
我可以提出以下建议供您研究:
config.xml
you will not be able to connect to anything remotely. config.xml
定义白名单,您将无法远程连接任何东西。 I would also recommend looking at this and this for more info. 我还建议在看这个和这个获取更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.