简体   繁体   中英

How do I display Dropbox image files in an ASP.NET web page using Core API in C#

I want to show Dropbox image files in an ASP.NET image control using the Core API in C#. I'm populating the dropbox image file using the below code:

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

Suppose there is an image control on the .aspx page

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

and I want to display the Dropbox image file on this control.

The initial link was incorrect, instead of:

dropbox.com/1/metadata/

The following link should have been used:

dropboxapi.com/1/media/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM