WebClient.DownloadData : WebClient « System.Net « VB.Net by API






WebClient.DownloadData

  

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.java2s.com")
        myWebClient.DownloadFile("http://www.java2s.com", "test.txt")


    End Sub
End Class

   
    
  








Related examples in the same category

1.WebClient.DownloadFile
2.WebClient.OpenRead