Hi.
I'd like to download file from internet. I'd like to download specific picture.
I have a lot of problems, becouse file doesnt get downloaded each time.
I'm using this procedure and in 5 of 10 shots it fails.
please help
I'd like to download file from internet. I'd like to download specific picture.
I have a lot of problems, becouse file doesnt get downloaded each time.
I'm using this procedure and in 5 of 10 shots it fails.
please help
Visual Basic:
'download image
Try
My.Computer.Network.DownloadFile(urlPath, myFile, "", "", False, 10000000, True)
sql.Insert_Log(clsSQLfunctions.ErrorTypes.Importance4, 1, "Downloaded: ", urlPath)
Img = Image.FromFile(myFile)
DownloadImage = True
Catch ex As Exception
DownloadImage = False
sql.Insert_Log(clsSQLfunctions.ErrorTypes.Importance1, 1, "Error: Can't download (or rewrite) file", "DownloadImage #2 " & urlPath & " " & myFile)
End Try