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
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on November 23, 2015 at 10:44 AM
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.
Reply by insha
on November 28, 2015 at 6:00 PM
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"