Is there anyone who can tell me what i am doing wrong ? :-)
Iam trying to download a poster but :
I keep getting an : An unhandled exception of type 'System.Net.WebException' occurred in System.dll
Private Sub btn_TMDB_Click(sender As Object, e As EventArgs) Handles btn_TMDB.Click
Dim fileReader As New WebClient
imageAddress = "https://image.tmdb.org/t/p/original//47LvV0urbkr8fEGEZHijD0GZReS.jpg"
fileReader.DownloadFile(imageAddress, "c:\TMDB\Posters\" + "test" + ".jpg")
End Sub
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 23 novembre 2015 à 10h44
Hi bigbag,
I have never used that language before (.Net I think) but have you taken a look at how the .Net library gets images? Maybe it will provide some insight.
Réponse de insha
le 28 novembre 2015 à 18h00
Hi,
I have not used .Net a whole lot, but looking at your snippet, the URL has an extra slash in it (right after 'original' in the URL):
You have: "https://image.tmdb.org/t/p/original//47LvV0urbkr8fEGEZHijD0GZReS.jpg"
It should be: "https://image.tmdb.org/t/p/original/47LvV0urbkr8fEGEZHijD0GZReS.jpg"