Получить ответ тела - PullRequest
       1

Получить ответ тела

1 голос
/ 29 октября 2011

Я сейчас использую код:

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 байтов.

...