Axuda de The Movie Database

Hi am trying to get movies images using the link https://image.tmdb.org/t/p/original/ by passing the path of the movie
this is the base_url=" https://image.tmdb.org/t/p/original/"
and this is the image tag am using

but when i run the app it gives me zzWGRw277MNoCs3zhyG3YmYQsXv.jpg:1 GET https://image.tmdb.org/t/p/original/%20/zzWGRw277MNoCs3zhyG3YmYQsXv.jpg 404

9 respostas (na páxina 1 de 1)

Jump to last post

@H_A said:
images error 404
Hi am trying to get movies images using the link https://image.tmdb.org/t/p/original/ by passing the path of the movie
this is the base_url=" https://image.tmdb.org/t/p/original/"
and this is the image tag am using

but when i run the app it gives me zzWGRw277MNoCs3zhyG3YmYQsXv.jpg:1
GET https://image.tmdb.org/t/p/original/%20/zzWGRw277MNoCs3zhyG3YmYQsXv.jpg 404

Compare your URL (1) to the one that works correctly (2):

(1) https://image.tmdb.org/t/p/original/%20/zzWGRw277MNoCs3zhyG3YmYQsXv.jpg  
(2) https://image.tmdb.org/t/p/original/zzWGRw277MNoCs3zhyG3YmYQsXv.jpg  

In your URL there is this string that is generating the error: %20/
It refers to an additional " Space + Slash ".

ok thanks it worked

Hi am trying to get movies images using the link https://image.tmdb.org/t/p/original/ by passing the path of the movie
this is the base_url=" https://image.tmdb.org/t/p/original/"
and this is the image tag am using

but when i run the app it gives me zzWGRw277MNoCs3zhyG3YmYQsXv.jpg:1 GET https://image.tmdb.org/t/p/original/%20/zzWGRw277MNoCs3zhyG3YmYQsXv.jpg 404

@vidhatenikhil954 said:

but when i run the app it gives me zzWGRw277MNoCs3zhyG3YmYQsXv.jpg:1 GET https://image.tmdb.org/t/p/original/%20/zzWGRw277MNoCs3zhyG3YmYQsXv.jpg 404

Just like the above example, you have an extra encoded space in your URL. Compare these two URLs:

https://image.tmdb.org/t/p/original/%20/zzWGRw277MNoCs3zhyG3YmYQsXv.jpg
https://image.tmdb.org/t/p/original/zzWGRw277MNoCs3zhyG3YmYQsXv.jpg

The second one is correct, the first one is not.

Thank You Travis!

Hi am trying to get movies images using the link https://image.tmdb.org/t/p/original/ by passing the path of the movie this is the base_url=" https://image.tmdb.org/t/p/original/" and this is the image tag am using. When i looked in the inspected that i get original undefined. error 404. but that time i do get the images , But after i hosted the page, im not able to view any images. can i get some help!

@JayakrishnansKumar What's a full and complete URL that is 404'ing?

@Belete said:
https://image.tmdb.org/t/p/original/

I don't know if that's what you're asking for, but ...

When an API Request is made, in the responses received you will find the Path of the images:
poster_path or backdrop_path or profile_path or logo_path or still_path.
Something like that:

backdrop_path   "/hZkgoQYus5vegHoetLkCJzb17zJ.jpg"   
poster_path "/r3pPehX4ik8NLYPpbDRAh0YRtMb.jpg"    

To access/download the image use the basic images URL.

https://image.tmdb.org/t/p/  

The request should be similar to these:

https://image.tmdb.org/t/p/[size]/[poster_path]  
https://image.tmdb.org/t/p/original/wigZBAmNrIhxp2FNGOROUAeHvdh.jpg  
https://image.tmdb.org/t/p/w500/wigZBAmNrIhxp2FNGOROUAeHvdh.jpg  

https://image.tmdb.org/t/p/original/wigZBAmNrIhxp2FNGOROUAeHvdh.jpg

Make sure to read the documentation around images.
https://developer.themoviedb.org/docs/image-basics
https://developer.themoviedb.org/reference/configuration-details
Image Sizes

https://api.themoviedb.org/3/configuration?api_key=THE_KEY

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión