OnRamp for Commerce One MarketSite 3.5 SP1 | webMethods OnRamp for Commerce One MarketSite Adapter Documentation | webMethods OnRamp for CommerceOne MarketSite Adapter Installation and User’s Documentation | Public Records, Specifications, and Services | pub.marketconnect.attachment | createAttachment
 
createAttachment
Creates an attachment from a binary object such as a PDF file or a file that is not plain text or from a document object such as an XML string.
Note:
This service has been superseded by the createBinaryAttachment and createDocumentAttachment services.
Package
WmMarketConnect
Input Parameters
bytes
Object Object from which to create the attachment, as a byte array.
encoding (optional)
String The encoding attribute for the attachment. If you do not specify this parameter, the service does not include the encoding attribute in the attachment.
identity (optional)
String The identity attribute for the attachment. If you do not specify this parameter, the service does not include the identity attribute in the attachment.
type (optional)
String The MIME type attribute for the attachment. If you do not specify this parameter, or if you specify the type application/xml or a type that starts with text/, the service creates a text (document) attachment. If you specify any other type, the service creates a binary attachment.
Output Parameters
attachment
Resulting attachment.