{NOTE: }
-
Use the
GetAttachmentOperation
to retrieve an attachment from a document. -
In this page:
{NOTE/}
{PANEL: Get attachment example}
{CODE:nodejs get_attachment@client-api\operations\attachments\getAttachment.js /}
{PANEL/}
{PANEL: Syntax}
{CODE:nodejs syntax_1@client-api\operations\attachments\getAttachment.js /}
Parameter | Type | Description |
---|---|---|
documentId | string |
Document ID that contains the attachment. |
name | string |
Name of attachment to get. |
type | string |
Specify whether getting an attachment from a document or from a revision. ( "Document" or "Revision" ). |
changeVector | string |
The ChangeVector of the document or the revision to which the attachment belongs. Mandatory when getting an attachment from a revision. Used for concurrency checks (use null to skip the check). |
Return Value of store.operations.send(getAttachmentOp) |
|
---|---|
AttachmentResult |
An instance of class AttachmentResult |
{CODE:nodejs syntax_2@client-api\operations\attachments\getAttachment.js /}
{PANEL/}