c# - Wich path to access e.x. pictures from the whatsapp folder with StorageFolder.GetFolderFromPathAsync() -
c# - Wich path to access e.x. pictures from the whatsapp folder with StorageFolder.GetFolderFromPathAsync() -
i tryed access files folder wich located in knownfolder.pictures folder, e.x. files pictures/whatsapp. want create storagefolder, path?
here code, not work
storagefolder picturesfolder = await storagefolder.getfolderfrompathasync("data///pictures//whatsapp");
thanks in advance, christian
pictureslibrary virtual location - exists both on phone , sd card. it's hard tell direct path may depend on user settings. can access folder this:
storagefolder pictures = knownfolders.pictureslibrary; storagefolder folder = await pictures.getfolderasync(@"whatsapp"); // should have folder // create folder: storagefolder newone = await folder.createfolderasync(@"newfolder", creationcollisionoption.openifexists);
also remember add together suitable capabilities (pictureslibrary) in package.appxmanifest file.
as way - possible folder direct path (if had saved before), have give complere path eg. c:\pictures...
- i've said above, pictures can exist on sd card has different letter.
c# windows-8.1 windows-phone-8.1 win-universal-app
Comments
Post a Comment