1

我正在使用代码:

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 个字节。

4

0 回答 0