Windows phone 8下载文件,并使用localstorage中的路径。 [英] Windows phone 8 download file, and use its path from localstorage.

查看:46
本文介绍了Windows phone 8下载文件,并使用localstorage中的路径。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我一直在寻找Windows Phone 8的文件传输教程,但由于某种原因,它们似乎都非常适合我想要的代码,只需下载一个文件(图像)在这种情况下)到手机并使用它已被保存的路径作为
控件的来源

I've been looking at file transfer tutorials for windows phone 8, but for some reason they all seem quite code extensive for what i want, wich is simply to download a file(image in this case) to the phone and use the path its been saved too as a source of a control


i从webservice获取以下Json

i get the following Json from a webservice

[{"name":"image1.png","link":"http://www.xxxxxx.com/image1.png"},{"name":"image2.png","link":"http://www.xxxxxx.com/image1.jpg"}]



并希望使用这些链接进行下载

and want to use those links to do the downloads


总和我想检查文件是否存在,如果没有下载,并获取其稍后使用的路径。

in sum i want to Check if file exists, if not download, and get its path to use later.

推荐答案

您可以使用HttpClient / WebClient下载图像,将文件保存到独立存储。
You could use HttpClient/WebClient to download the image, save the file to isolated storage.


这篇关于Windows phone 8下载文件,并使用localstorage中的路径。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆