The getPartialAttachmentContent function is used to retrieve content from an attachment. The function has a 64 KB limit to the amount of content it can retrieve. Its purpose is to allow the retrieval of a subset of the content.
Syntax
sContent = getPartialAttachmentContent(lAttachmentID,nStartIndex, nRetrieveLength)
Arguments
The unique ID that identifies the attachment where the content resides that is being retrieved.
The location, in bytes
Return Value
Contains the content, from the specified attachment, beginning with the nStartIndex byte and containing at most nRetrieveLength bytes. The return type is C2OString (com.optinuity.c2o.bean.C2OString).
Example
var i = Process.attachments[0].attachmentID; Process.part=getPartialAttachmentContent(i,i+1,100000);
|
Copyright © 2014 CA.
All rights reserved.
|
|