在本地存储中创建文件夹 [英] creating folder in localstorage

查看:188
本文介绍了在本地存储中创建文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在localstorage中动态创建一个文件夹....我已经这样写了:

I want to create a folder in localstorage dynamically....i have written like this :

StorageFolder文件夹= ApplicationData.Current.LocalFolder;//它将进入localstorage文件夹

StorageFolder folder = ApplicationData.Current.LocalFolder;//it will go in the localstorage folder

现在我想在本地存储中创建一个文件夹,然后将捕获的图像存储在该文件夹中

now i want to create a folder in localstorage and then store the captured image in that folder

        
StorageFile文件=等待文件夹.GetFileAsync(filename);

         
StorageFile file = await folder.GetFileAsync(filename);

IRandomAccessStream流=等待文件.OpenAsync(FileAccessMode.Read);
                             BitmapImage img1 =新的BitmapImage();
                             img1.SetSource(stream);
                             this.img.Source = img1;

IRandomAccessStream stream = await file.OpenAsync(FileAccessMode.Read);
                BitmapImage img1 = new BitmapImage();
                img1.SetSource(stream);
                this.img.Source = img1;

上方显示图片

我想在localstorage n中创建一个新文件夹,然后将图像保存在其中..ca任何人都可以帮助我

i want to create a new folder in the localstorage n then want to save the image there..ca any one help me

singh123456

singh123456

推荐答案

你好

阅读本文可能会有所帮助

read this article it might be helpful

http://msdn.microsoft.com/en-us/library/as2f1fez(v = VS.90).aspx


这篇关于在本地存储中创建文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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