I've been trying for long time to show images that I have in Dropbox, I'm reading the files correctly, but in the view I'm not sure how to put the content of the src
parameter of image
.
In my controller
I'm getting a SearchResult
and then I'm adding the results to a list of type Metadata
This is the code:
Dropbox.Api.Files.SearchResult resultSearch = await client.Files.SearchAsync("/MyFiles/", ".jpg");
List<Dropbox.Api.Files.Metadata> list = new List<Dropbox.Api.Files.Metadata();
for (int i = 0; i < resultSearch.Matches.Count; i++)
{
list.Add(resultSearch.Matches[i].Metadata);
}
Until now everything works great, even in the view the things works good, but how should I set the src
parameter of the image I want to show from DropBox?
This code belongs to my view:
<img src="/Dropbox/MyFiles/MyImage.jpg" style="height:133px; width:213px;" class="highlight" alt="@temp">
I made a shortcut with relevant code only, I'm not hardcoding in my view but this is how the src
parameter is getting filled, am I missing something? The image is not loading...