Re: LoadFromStream

Giganews Newsgroups
Subject: Re: LoadFromStream
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Wed, 21 Jul 2004

"Brent" <te…@imppub.com> wrote in message
news:DC98C5AEB2A5E240te…@imppub.com...

>    EmailLogTblMessage.SaveToStream(MyStream); {BLOB field in Table}

The best way to get a stream from a blob field is to use the database
component's CreateBlobStream() method.

>    IdMsgSend.LoadFromStream(MyStream); {Fill Message component}

You didn't set the stream's Position property back to 0 after calling
SaveToStream() and before calling LoadFromStream().

Gambit

Replies

None

In response to

LoadFromStream posted by Brent on Wed, 21 Jul 2004