Parse Image links


I need to parse a collection of image links from a HTML string, download and place them in a temp file to be used as ButtonBase.Image Property .

The image links that need to be parsed are along the lines "" & (a integer 1-100) & ".png"

Can anybody please help?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

kouroshparsaConnect With a Mentor Commented:
webAddress is a string containing the URL
fileName and filePath are strings

            Dim client As New WebClient
            client.DownloadFile(webAddress, filePath & "\" & fileName)
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:

 Then search for all "http\\"s all web addresses of images in an array.
kaliyugkaarjunConnect With a Mentor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.