Internet Direct (Indy)
Home
PreviousUpNext
TIdAttachment.SaveToStream Method

Writes the content for an attachment onto the specified stream.

Pascal
procedure SaveToStream(
    AStream: TIdStream
); virtual;
Parameters 
Description 
Stream 
Stream used to store the contents of the attachment. 

SaveToStream is a method used to write the content of the attachment into the TIdStream instance specified in AStream. 

SaveToStream prepared an internal stream instance with the headers and the message part content for the attachment. SaveToStream uses the CopyFrom method in the stream instance to copy values from the load stream onto the stream specified by AStream. 

Use LoadFromStream to load the attachment stored using SaveToStream.

OpenLoadStream 

CloseLoadStream 

LoadFromStream

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.