Class MultipartBinaryBodyBuilder
Class for building multipart/mixed message bodies that may contain binary contents as well as text contents.
Inherited Members
Namespace: SipLib.Body
Assembly: SipLib.dll
Syntax
public class MultipartBinaryBodyBuilder
Methods
| Edit this page View SourceToByteArray(List<MessageContentsContainer>, string)
Converts a list of contents to a byte array. This method must be used for building multipart/mixed contents if one or more of the contents blocks contains binary contents. It may also be used for building multipart/mixed contents is all of the contents blocks are text. This method may be used for building multipart/mixed bodies for both SIP message and MSRP messages.
Declaration
public static byte[] ToByteArray(List<MessageContentsContainer> Contents, string BoundaryString)
Parameters
Type | Name | Description |
---|---|---|
List<MessageContentsContainer> | Contents | Contains a list of body contents blocks. |
string | BoundaryString | Specifies the string to use for the body delimeter. Must match the value of the boundary parameter in the Content-Type header value. For example, if the Content-Type header value is "multipart/mixed;boundary=boundary1", this parameter must be boundary1. |
Returns
Type | Description |
---|---|
byte[] |