Re: 2 ways of writing TIdBytes to a StringStream generate different results

Giganews Newsgroups
Subject: Re: 2 ways of writing TIdBytes to a StringStream generate different results
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Wed, 28 Mar 2007

"koen" <ko…@ha.com> wrote in message
news:Xns9901907408842koenhac…@87.106.16.84...

>  WriteTIdBytesToStream (Stream, AData);
>  IdMessage->LoadFromStream (Stream);

You are not resetting the Stream's Position property back to 0 before
calling LoadFromStream().

Gambit

Replies

In response to

2 ways of writing TIdBytes to a StringStream generate different results posted by koen on Wed, 28 Mar 2007