The GetPhoto() command returns a photo attachment as a Base64 encoded binary string.

To get a list of photos attached to an asset, see GetAttachments().

  • Quota: 6
Table 1. Parameters
Parameter Type Max Length Required Description
apiToken string 20 Y Your API security token configured in Field View.
assetID integer Y The unique ID of the asset.
mediaID string 20 Y The ID in <Attachment> from GetAssetAttachments where Type = “Photo.”
Table 2. Returns
Field Type Description
GetPhotoResponse GetPhotoResponse Returns a single photo attachment object. Note that <Media> contains a Base64 encoded binary string. All photos are JPG format.
               <Media>[BASE 64 Encoded JPG]</Media>