1. WPCentral Question's Avatar
    Hi,

    I am trying to copy file from Picture Library folder to Document folder via WP8.1 phone app, however I am getting the Access Denied Exception.
    When I tried to copy the file from Picture Library to Camera Roll folder than the file gets copied without any Eroor/Exception.

    Below is the code that is giving exception while coping to Document folder:

    StorageFolder^ picturesFolder = KnownFolders::DocumentsLibrary;
    create_task(file->CopyAsync(picturesFolder, "sample - Copy.dat", NameCollisionOption::ReplaceExisting)).then([this, file](task<StorageFile^> task)
    {
    try
    {
    StorageFile^ sampleFileCopy = task.get();
    rootPage->NotifyUser("The file '" + file->Name + "' was copied and the new file was named '" + sampleFileCopy->Name + "'.", NotifyType::StatusMessage);
    }
    catch (COMException^ ex)
    {
    rootPage->HandleFileNotFoundException(ex);
    }
    });
    }

    Actually I need to copy the folder present in Picture Library to the Document Folder. Kindly assist.

    Thanks,
    Deepak
    07-07-2014 06:31 AM
  2. badr0b0t's Avatar
    I think, the problem is that you are trying to copy a jpeg or png files to a folder that should only contain .docx or .xlsx files. Not sure but could be possible.
    07-07-2014 07:44 AM

Similar Threads

  1. Gmail deletes in 8.1?
    By vedichymn in forum Windows Phone 8.1 Preview for Developers
    Replies: 16
    Last Post: 09-11-2014, 12:14 AM
  2. How to check username in Skype app
    By md_minhaj in forum Ask a Question
    Replies: 8
    Last Post: 08-19-2014, 03:33 PM
  3. no albumart in lockscreen
    By Pavan_KD in forum Samsung ATIV S
    Replies: 1
    Last Post: 07-07-2014, 01:50 AM
  4. Kinect Games Need to Be Filtered in the Xbox Store
    By coip in forum The Xbox Lounge
    Replies: 0
    Last Post: 07-06-2014, 10:28 PM
  5. Dark Way Down, find the light in this totally free puzzle game for Windows Phone
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 07-06-2014, 04:42 PM
LINK TO POST COPIED TO CLIPBOARD