Imports System.Net Imports System.IO Imports System.Text Public Class Tester Public Shared Sub Main Dim myWebClient As New WebClient() Dim mybyte() As Byte mybyte = myWebClient.DownloadData("http://www.java2java.com") myWebClient.DownloadFile("http://www.java2java.com", "test.txt") End Sub End Class