- URL:https:// <attachmentinfos-url>/<attachmentId>
- Required Capability:Query
- Version Introduced:10.0
The attachment resource represents an individual attachment associated with a feature. This resource is available only if the layer has advertised that it has attachments. A layer has attachments if its hasAttachments property is true.
The content of the attachment is streamed to the client. If the attachment is not found, an HTTP status code of 404 (Not found) is returned.
New at 10.1
- Support for the gdbVersion parameter was added. Use this parameter to specify the geodatabase version to query.
This option was added at 10.1.
Description: The geodatabase version to query. This parameter applies only if the hasVersionedData property of the service and the isDataVersioned property of the layer or layers queried are true.
If this is not specified, query will apply to the published map's version.
Syntax: gdbVersion=<geodatabase version>
Example 1: Retrieve attachment of a feature whose objectID is 818654.
Example 2: Retrieve attachment from an alternate SDE version.