JDBC Driver for Confluence

Build 25.0.9434

DownloadAttachment

Downloads an attachment from Confluence by specifying its unique attachment ID.

Input

Name Type Required Accepts Output Streams Description
Id String False False The unique identifier of the content item (such as a page or blog post) to which the attachment belongs.
AttachmentId String True False The unique identifier of the attachment to be downloaded.
Version String False False Specifies the version of the attachment to download. If not provided, the latest version is downloaded by default.
FileLocation String False False The absolute or relative path where the downloaded file will be saved.
Overwrite String False False If the value is 'true', existing files at the target location will be overwritten. If the value is 'false', the procedure preserves existing files. The default value is 'false'.
Encoding String False False Specifies the encoding type used for the file data, defining how the content is read or written.

The allowed values are NONE, BASE64.

The default value is BASE64.

FileStream String False True An output stream instance to which the file data is written. Used only when FileLocation is not specified.

Result Set Columns

Name Type Description
Success String If the value is 'true', the download operation completed successfully. If the value is 'false', the operation failed.
FileData String If neither FileLocation nor FileStream is specified, this output contains the raw file content, typically in Base64-encoded format.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434