Answered Can I upload file to skydrive use BackgroundUploader?

  • Monday, February 27, 2012 1:05 PM
     
     

    Hi all,

    In Metro app, there is SDK for uploading files to SkyDrive, that is LiveConnectClient.UploadAsync(...). However, since the metro app would be suspended by system, in order to upload file even the app is suspended, so I wish to use BackgroundUploader to do so. I found that only RESTful api might meet requirements of BackgroundUploader, that is it is http request:

    POST https://apis.live.net/v5.0/me/skydrive/files?access_token=ACCESS_TOKEN

    Content-Type: multipart/form-data; boundary=A300x

    --A300x
    Content-Dis name="file"; filename="HelloWorld.txt"
    Content-Type: application/octet-stream

    Hello, World!
    --A300x

    Is it possible for me to convert this POST RESTful api to BackgroundUploader, and could you please show me the SAMPLE CODE, or other solution available? Thanks a lot!

All Replies