Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...