【问题标题】:How do I display Dropbox image files in an ASP.NET web page using Core API in C#如何在 C# 中使用 Core API 在 ASP.NET 网页中显示 Dropbox 图像文件
【发布时间】:2016-06-07 12:27:42
【问题描述】:

我想使用 C# 中的 Core API 在 ASP.NET 图像控件中显示 Dropbox 图像文件。我正在使用以下代码填充 Dropbox 图像文件:

RequestResult strReq = OAuthUtility.Get
(
    "https://api.dropbox.com/1/metadata/auto/",
    new HttpParameterCollection
    {
        { "path", "FilePath" },
        { "access_token", "AccessToken" }
    }
);

假设.aspx页面上有一个图片控件

<asp:Image id="Image1" runat="server"> 

我想在这个控件上显示 Dropbox 图像文件。

【问题讨论】:

标签: c# asp.net dropbox dropbox-api


【解决方案1】:

初始链接不正确,而不是:

dropbox.com/1/metadata/

应该使用以下链接:

dropboxapi.com/1/media/

【讨论】:

  • 这个答案过于简短且难以理解。请充实它,以便更清楚您的建议作为答案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-07-29
  • 1970-01-01
  • 2022-01-08
  • 2017-10-31
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多