我现在正在使用代码:
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
但问题是我正在下载audio / mpeg对象。当我看到
MsgBox(getHtmlres(myHttpWebResponse1))
它显示:
ID3<<<SQUARE>>>
。当我做的时候
System.IO.File.WriteAllText("D:\sdg.txt",getHtmlres(myHttpWebResponse1))
它写入0个字节。