Read NNTP content manually problem

Giganews Newsgroups
Subject: Read NNTP content manually problem
Posted by:  BiT (shirisas…@walla.com)
Date: Tue, 5 Jun 2007

Hi I Use SendCmd() directly, and then read the response content manually via
ReadBytes() the problem is i get just part of the body message.

i work in vb.net thanks.

code:

Dim _NNTP As New NNTP

Dim msg As New Message

Dim vBuffer As Byte()

Dim respone As String

_NNTP.Username = "*********"

_NNTP.Password = "*********"

_NNTP.Connect("news.*********.com")

If _NNTP.Connected Then

Dim a = _NNTP.SendCmd("body
<part120of403.9$J4GI0BbN3g8urpuO…@powerpost2000AA.local>", respone)

_NNTP.IOHandler.ReadBytes(vBuffer, -1, True)

Dim oFileStream As System.IO.FileStream

oFileStream = New System.IO.FileStream("c:\test\data.txt",
System.IO.FileMode.Create)

oFileStream.Write(vBuffer, 0, vBuffer.Length)

oFileStream.Close()

End If

Replies