-
Hello All,
I need some help, I'm kinda stuck. I'm working with webbrowser and Inet controls. On a html page are absolute links. I chop off the url so what remains is the name of the html file or a directory. Example: if the website is www.abcdefg.com/page1.html becomes page1.html How would I go about saving these files?
Please help me VB gurus! =)
Thanks in advance!
-
is this the sort of thing you want?
put an Inet control, command button and image on a form....
Code:
Option Explicit
Private Sub Command1_Click()
Dim localFile As String
Dim strURL As String
Dim b() As Byte
localFile = "c:\mark.jpg"
strURL = "http://graffiti.virgin.net/dms.mbs/images/mark.jpg"
' Retrieve the file as a byte array.
b() = Inet1.OpenURL(strURL, icByteArray)
Open localFile For Binary Access _
Write As #1
Put #1, , b()
Close #1
Image1.Picture = LoadPicture("c:\mark.jpg")
End Sub