Re: Indy 10 - download article body to file

Giganews Newsgroups
Subject: Re: Indy 10 - download article body to file
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Mon, 4 Jun 2007

"BiT" <shirisas…@walla.com> wrote in message
news:6C6165D67228E340shirisas…@walla.com...

> i would like to know how do i download article body to
> file

The exact same way you do in Indy 9.  GetArticle() has overriden
methods for downloading the article to a TIdMessage, TStrings, or
TStream.  Any of those can then save the data to a file.

> or even to byte var' in indy 10?

TIdNNTP does not directly support that.  You would have to download
the article into a TMemoryStream, and then copy that into your byte
array.

Gambit

Replies

None

In response to

Indy 10 - download article body to file posted by BiT on Sat, 2 Jun 2007