mcerk Posted January 27, 2006 Posted January 27, 2006 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 '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 Quote
OMID SOFT Posted January 27, 2006 Posted January 27, 2006 Why not using WebClient?!WebClientProgress.zip Quote Don't ask what your country can do for you, ask what you can do for your country...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.