[英]Download file from URL to the file system with PhoneGap
How can I download a file from URL to the file system with PhoneGap? 如何使用PhoneGap从URL将文件下载到文件系统? I see there is a plugin for this ( http://www.toforge.com/2011/02/phonegap-android-plugin-for-download-files-from-url-on-sd-card/ ), but it's only for Android. 我看到有一个用于此的插件( http://www.toforge.com/2011/02/phonegap-android-plugin-for-download-files-from-url-on-sd-card/ ),但这只是适用于Android。
Are there any cross-platform solutions? 是否有任何跨平台解决方案?
Looks like the FileWriter is supported on most platforms. 看起来大多数平台都支持FileWriter。 I haven't tried it, but it might work for you. 我没有尝试过,但它可能对您有用。
http://docs.phonegap.com/en/1.3.0/phonegap_file_file.md.html#File http://docs.phonegap.com/en/1.3.0/phonegap_file_file.md.html#File
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.