如何使用livedk将内容附加到skydrive中的现有文件 [英] how to append the content to existing file in skydrive using livesdk
问题描述
我正在使用以下代码将手机上的内容上传到文件"SavedContent"中,在我的云端硬盘上.
I am using the below code to upload the content on my phone to a file "SavedContent" on my skydrive.
App.liveConnectClient.UploadAsync("me/SkyDrive", "SavedContent" , fileStream, OverwriteOption.Overwrite);
App.liveConnectClient.UploadCompleted += liveConnectClient_UploadCompleted;
而不是覆盖现有文件I如果文件已经存在,希望将新内容附加到上面的文件中.
Instead of overwriting the existing file I want to append the new content to above file if the file already exists.
我看到它的唯一方法是下载文件内容(如果已存在),然后附加新内容,然后使用覆盖选项再次上传文件.
The only way I see it is by downloading the content of the file if already exists and then append the new content and upload the file again with overwrite option. How can I do this using the livesdk ?
推荐答案
那是正确的.您需要下载原始内容,添加所需的数据,然后上传并覆盖原始文件.
That is right. You would need to download the original content, append the data you want then upload and overwrite the original file.
此链接应回答您的所有问题: Live SDK开发人员指南
This link should answer all your questions : Live SDK developer guide
这篇关于如何使用livedk将内容附加到skydrive中的现有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!