|Subject:||Re: Size of an Indy Message|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Fri, 9 Jun 2006|
"Master Surfer" <mastersurfer…@web.de> wrote in message
> how can I get the size of an IdMessage?!
TIdMessage does not generate the message data until it is already in the act
of being sent. The only way to get the data size ahead of time is to save
the TIdMessage to a TStream or a file, and then get the size of that
instead. However, the size is not guaranteed to be exactly the same as what
TIdMessage actually sends because the data is dynamically generated, so some
fields may have different sizes each time the data is re-created.
Size of an Indy Message posted by Master Surfer on Fri, 09 Jun 2006