私は現在コードを使用しています:
Private Function getHtmlres(ByVal response As HttpWebResponse) As String
Dim myWebSource As New StreamReader(response.GetResponseStream())
Dim myPageSource As String = String.Empty
myPageSource = myWebSource.ReadToEnd()
Return myPageSource
End Function
しかし、問題は、オーディオ/mpegオブジェクトをダウンロードしていることです。私が見たとき
MsgBox(getHtmlres(myHttpWebResponse1))
それが示している :
ID3<<<SQUARE>>>
。私がする時
System.IO.File.WriteAllText("D:\sdg.txt",getHtmlres(myHttpWebResponse1))
0バイトを書き込みます。