Re: How big is my message

Giganews Newsgroups
Subject: Re: How big is my message
Posted by:  Remy Lebeau (TeamB) (
Date: Wed, 17 Aug 2005

"Grant Brown" <gra…> wrote in message

> How can I obtain the total number of bytes that
> will be sent by a TidMessage component

The only way is to save the TIdMessage to a file or TStream and then use the
Size of that.  Even then, that is not 100% accurate, since TIdMessage is
dynamically encoded during transmission and thus the byte contents are not
guaranteed to be exactly the same.




In response to

How big is my message posted by Grant Brown on Wed, 17 Aug 2005