CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2013
    Posts
    1

    WP7 - How to download and save files from skydrive

    I have to save files from folder on skdrive to my isolated storage (if files in isolated storage exist then override them).

    This is my code:

    Code:
    private void RestoreData(LiveConnectClient liveClient, string storedFolderId)
        {
            liveClient.DownloadCompleted += liveClient_DownloadCompleted;
            liveClient.DownloadAsync(storedFolderId + "/content");
        }
    
        private void liveClient_DownloadCompleted(object sender, LiveDownloadCompletedEventArgs e)
        {
            Stream stream = e.Result;
    
            // HOW TO SAVE FILES ON IN THIS METHOD?
        }
    How can I save files in method liveClient_DownloadCompleted?

  2. #2

    Re: WP7 - How to download and save files from skydrive

    You can write the Stream object to a file.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured