chadmanvb
asked on
get image and byte size from internet in visual basic .net
We have a static image on our website and we use that to check if the site is up. How could I get the image and byte size using visual basic .net with a url?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Worked great. Just used an overload so I could keep overwriting the file.
My.Computer.Network.Downlo adFile _
(address := "http://www.randomurl.com/randomfile.txt", _
destinationFileName := Path.Combine(Environment.G etFolderPa th( _
Environment.SpecialFolder. Applicatio nData), _
"test/randomfile.txt"), _
userName := string.Empty, password := string.Empty, _
showUI := False, connectionTimeout := 100000, _
overwrite := True)
My.Computer.Network.Downlo
(address := "http://www.randomurl.com/randomfile.txt", _
destinationFileName := Path.Combine(Environment.G
Environment.SpecialFolder.
"test/randomfile.txt"), _
userName := string.Empty, password := string.Empty, _
showUI := False, connectionTimeout := 100000, _
overwrite := True)
ASKER