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!
--A300xIs 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
-
Tuesday, February 28, 2012 1:32 AMModerator
Hi Dongjjing,
It looks like you should be able to use BackgroundUploader to upload to SkyDrive by setting the appropriate headers in the BackgroundUploader object. You should be able to get more information about the specific headers needed on the Live Connect Developer Center and forums.
--Rob
- Marked As Answer by Matt SmallMicrosoft Employee, Moderator Wednesday, February 29, 2012 2:18 PM
-
Tuesday, February 28, 2012 7:48 AM
Hi Rob Caplan,
Thanks!
-
Friday, March 02, 2012 8:41 AM
hey, Dongjjing
Have you solved the problem? and what's the solution?
呵,呵呵~~
-
Friday, March 02, 2012 8:45 AMSorry... Have you any solution?
-
Friday, March 02, 2012 9:01 AM
No, I'm not.
I'm studing the new LiveSDK and SkyDrive these day, I wanna upload files to skydrive in backgroud.
I thought you had found the solution.
话说是中国人吧?这名字
呵,呵呵~~
-
Friday, March 02, 2012 9:02 AM
I will try another way as follow:
呵,呵呵~~
-
Monday, March 05, 2012 5:37 AM是的,和ASUS也合作过呵呵


