Avatar of trevor1940
trevor1940
 asked on

C#: using TMDbLib to retrive person images

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
.NET ProgrammingC#

Avatar of undefined
Last Comment
trevor1940

8/22/2022 - Mon
Eduard Ghergu

Hi,

The ImageData from https://github.com/LordMike/TMDbLib/tree/master/TMDbLib/Objects/General contains only the image file path. In order to retrieve the files you'll need to retrieve the files via a request to the server. https://stackoverflow.com/questions/3615800/download-image-from-the-site-in-net-c
ASKER CERTIFIED SOLUTION
trevor1940

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes