Adds any arbitrary part to a MultipartMessage.

Syntax

PROCEDURE addBytesPart. 
DEFINE INPUT PARAMETER memptr AS MEMPTR.
DEFINE INPUT PARAMETER contentTypeString AS CHARACTER.
DEFINE INPUT PARAMETER contentIDString AS CHARACTER.

Applies to

Message objects

Notes

  • The part can be text or binary. The Sonic message is created as usual.
  • A content type and a content ID must be specified.
  • To conserve resources, after calling this procedure, the application must delete the memory pointer (represented by memptr).

See also

createMultipartMessage procedure, addMessagePart procedure, addTextPart procedure, isMessagePart function, getPartCount function, getContentType, getMessagePartByID function, getMessagePartByIndex function, writeBytesFromRaw procedure, readBytesToRaw procedure, setMemptr procedure, getMemptr function

For more information, see the MultipartMessage and the MultiPartMessage example.