- URL:
- https://<root>/<serviceName>/FeatureServer/<layerId>/<featureId>/attachments/<attachmentId>
- Methods:
GET
- Required Capability:
- Query
- Version Introduced:
- 10.0
Description
An individual 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 has
property is true
.
The contents of the attachment are streamed to the client. Attachments are returned within an attachmentInfos resource. If the attachment is not found, an error is returned.
The response returned for this resource is a download of the attachment.
New at 11.1
The following update has been made for non-hosted feature services (referencing enterprise geodatabases) published from ArcGIS Pro:
- The
w
parameter is now supported for qualifying non-hosted feature services. Thew
parameter returns attachments resized to a pixel width based on the value set forw
. A non-hosted feature service's support for thew
parameter is indicated when the service-levelsupports
property is set toAttachments Resizing true
.
New at 10.9.1
Hosted feature service attachment resources support the w
parameter, which returns attachments resized to a pixel width matching the w
parameter's value. The supports
layer property is set to true
when the w
parameter is supported.
Request parameters
Parameter | Details |
---|---|
| An integer value that describes the width to resize an attachment image to when returned with the attachment resource. The resizing maintains the aspect ratio and is only applied to attachment images. Images cannot be made larger that the stored image by setting a larger Example
|
Example usage
The following is a sample request URL for an individual attachment resource:
https://machine.domain.com/webadaptor/rest/services/SanFrancisco/311Incidents/FeatureServer/0/818654/attachments/1?w=100