(Metro学习三)图片uri保存到本地图片库
摘要:
已知网络上图片的uri地址,如何将网络图片保存到本地呢?代码如下:保存图片到本地private async Task SaveImageFromUrl(string uri, string filename) { var rass = RandomAccessStreamReference.CreateFromUri(new Uri(uri)); IRandomAccessStream inputStream = await rass.OpenReadAsync(); Stream input = WindowsR... 阅读全文
posted @ 2012-10-11 17:36 温琴 阅读(496) 评论(0) 推荐(0) 编辑