Release 10.1A: OpenEdge Development:
Messaging and ESB

> ## getBytesPartByIndex function

> Retrieves a bytes part and returns the content type as a `CHARACTER` string.

> #### Syntax

>     FUNCTION getMessagePartByIndex RETURNS CHARACTER
>       (INPUT iIndex AS INTEGER, OUTPUT memPtr AS MEMPTR).

> #### Applies to

> Message objects

> #### Notes

> - Before calling this function, call `SET-SIZE` to free any memory allocated by the `MEMPTR`.

> - The bytes part does not undergo any code-page conversion. If it consists of text data, it is encoded in UTF-8. To encode it differently, either convert the code page manually or use one of the `getTextPartBy...` functions.

> #### See also

> createBytesMessage procedure, setMemptr procedure, writeBoolean procedure, writeByte procedure, writeBytesFromRaw procedure, writeChar procedure, writeDate procedure, writeDateTime procedure, writeDateTime-TZ procedure, writeDouble procedure, writeFloat procedure, writeInt procedure, writeLong procedure, writeLongString procedure, writeShort procedure, writeString procedure, getBytesCount function, endOfStream function, moveToNext procedure, readBytesToRaw procedure, readChar function, readDate function, readDateTime function, readDateTime-TZ function, readDecimal function, readInt function, readLogical function, readLongString function, readLongStringCP function, getMEMPTR function

> For more information, see the "BytesMessage" section.

> For an example, see the "Publishing, subscribing, and receiving an XML document in a BytesMessage" section.

> 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