We help IT Professionals succeed at work.
Get Started

C#: using TMDbLib to retrive person images

trevor1940
trevor1940 asked
on
87 Views
Last Modified: 2019-12-21
I'm trying to retrieve all a persons profile images  of a person C#.Net library for TheMovieDB.

https://www.themoviedb.org/person/25541-katherine-heigl/images/profiles?language=en-US
Shows several images

// This gets info about a person
var TMDBperson = client.GetPersonAsync(person.Id ).Result;

// then loop through but it's null
            ImagesflowLayoutPanel.Controls.Clear();
            foreach (var image in TMDBperson.Images.Profiles)
            {
                var PIB = new PersonImageBox(image);
                ImagesflowLayoutPanel.Controls.Add(PIB);
            }


// you can chain queries together something like this
// but not happy
var TMDBperson = client.GetPersonAsync(person.Id, TMDbLib.Objects.People.ProfileImages ).Result;

Open in new window


Looking at https://developers.themoviedb.org/3/people/get-person-images
There should be several images for Katherine Heigl So How do I retrieve them
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE