Attach to an existing topic

Previous Topic

Next Topic

Book Contents

Attach to an existing topic

Your application can create an attachment to an existing topic. The topic argument in the attachTopic method contains the identifier of the topic. Set the id field of the topicContext argument to the ID of the topic to attach to. The attachmentInput argument has the name, extension, attachment type, and optional properties of the attachment. The dataHandler field is a W3C MTOM (Message Transmission Optimization Mechanism) type to stream data.

The attachment types are:

Typically, your application writes an IMAGE or TABLE attachment to a temporary file, streams the file using the attachTopic, attachNewTopic, or attachAction method, and then deletes the file. A .NET client calls the streamFileAttachment method first, and then calls the attachTopic, attachNewTopic, or attachAction method.

void attachTopic(TopicsServiceContext topicsServiceContext,

TopicContext topicContext, AttachmentInput attachmentInput)

throws InvalidArgumentException, TopicsServiceException

Send Feedback