Release 10.1A: OpenEdge Development:
Messaging and ESB

> ## addBytesPart procedure

> 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, addBytesPart procedure, addMessagePart procedure, addTextPart procedure, isMessagePart function, getPartCount function, getMessagePartByID function, getMessagePartByIndex function, writeBytesFromRaw procedure, readBytesToRaw procedure, setMemptr procedure, getMEMPTR function

> For more information, see the "MultipartMessage" section and the "MultiPartMessage example" section.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095