【问题标题】:Get URL of image in OneDrive获取 OneDrive 中图片的 URL
【发布时间】:2014-08-06 05:28:58
【问题描述】:

我在 C# 中使用 LiveSDK。有没有办法获取指定图像文件的 URL(例如,像这样的 url:https://onedrive.live.com/embed?cid=1ED5694B634A1579&resid=1ED5694B634A1579%21685&authkey=ANQwPScWiCxbILY),以便将此链接直接放到 Image(Source 属性)控件? 我不想从 OneDrive 文件中下载 Stream,将其设置为 BitmapImage 并将其放入 Image 控件。

我知道 OneDrive 网络应用允许为选定的文件创建 URL,但不知道 SDK 是否有这样的功能。

【问题讨论】:

    标签: c# wpf windows-phone-8 onedrive


    【解决方案1】:

    在 MSDN 示例页面中有一个很好的示例,展示了如何从 OneDrive 中提取和使用图像。

    Photo Sky SampleThis sample demonstrates how to use the LiveSDK for pulling images from SkyDrive. In this sample you will learn how to use LiveSDK and request consent from the user to access his SkyDrive files and display the images in a Metro style application.

    来源:PhotoSky - SkyDrive Sample

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-13
      • 2018-05-09
      • 2016-10-04
      • 2012-01-22
      相关资源
      最近更新 更多