Copying app file to a extern folder RRS feed

  • Question

  • I need my JS App to copy a image file to the pictures library, so I have used the next line of code:

     Windows.Storage.StorageFile.getFileFromPathAsync(new Windows.Foundation.Uri('ms-appx:///bonus/Hope.jpg')).done(function (storageFile) { storageFile.copyAsync(Windows.Storage.KnownFolders.picturesLibrary) });

    And I have also added the Pictures Library capability in the manifest.

    When I execute the code, It says that the parameter is not correct and that 'Alternate stream names must begin with "App-"'. What is it talking about? What is wrong with the file path? I have tried with several files and I always get the same error.

    Saturday, February 1, 2014 9:26 PM