0

documentationで述べられているように、ファイルの方法をダウンロードしようとします:

try
{
    LiveDownloadOperation operation = await connectClient.CreateBackgroundDownloadAsync(filePath);
    var result = await operation.StartAsync();
    var file = result.File; // It is null

}
catch
{
    // Handle errors.
}

しかしresult.Fileヌルです。次のようなファイル パスに何か問題があると思います。

path = "file.8c8ce076ca27823f.8C8CE076CA27823F!129"

も試しました: path = "file.8c8ce076ca27823f.8C8CE076CA27823F!129/content"

何が間違っていますか?これは、LiveSDK 5.6 を使用した Windows ランタイム アプリです。

4

1 に答える 1

1

ファイル コンテンツを読み取るには、ファイル ID + /content を使用して、ストリームにアクセスします。

例:

LiveConnectClient liveClient = new LiveConnectClient(liveSession);
LiveDownloadOperation operation = 
         await liveClient.CreateBackgroundDownloadAsync(fileId + "/content");
var operationResult = await operation.StartAsync();

var fileContent = 
         await CustomMethod(await operationResult.GetRandomAccessStreamAsync());

return fileContent;
于 2014-06-11T09:49:43.380 に答える