webAddress is a string containing the URL
fileName and filePath are strings
Try
Dim client As New WebClient
client.DownloadFile(webAddress, filePath & "\" & fileName)
client.Dispose()
Catch
MsgBox(Err.Description)
End Try
'--------------
Note: You can either read HTML files or download, save them and read them. (depending on what you want)
Downloading is described above.
To Read, try some thing like:
Dim stream As IO.Stream = client.OpenRead("webAddress")
Dim bf(1024) As Byte
Dim str As String = stream.Read(bf, 0, 1000)
or better yet, look at MSDN:
fileName and filePath are strings
Try
Dim client As New WebClient
client.DownloadFile(webAdd
client.Dispose()
Catch
MsgBox(Err.Description)
End Try
'--------------
Note: You can either read HTML files or download, save them and read them. (depending on what you want)
Downloading is described above.
To Read, try some thing like:
Dim stream As IO.Stream = client.OpenRead("webAddres
Dim bf(1024) As Byte
Dim str As String = stream.Read(bf, 0, 1000)
or better yet, look at MSDN:
http://msdn2.microsoft.com/en-us/library/system.net.security.sslstream.beginread.aspx
Then search for all "http\\"s ...store all web addresses of images in an array.