Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TagDescription
idThe id of the attachment. This will be the value that is in the tag for the actual field. For example if the media item has an external label of "signature" then the value of the "signature" element will be an id, normally a uuid. This uuid is the reference to the attachement id that contains the signature data.
type"local" or "remote". Local means the data for the attachment is contained in the XML under the "data" element;  remote means a url will be provided under the "url" element to access the attachment data, e.g. a link to the image. Signatures are normally local and photos remote.
contentTypethe The mime type of the image.
dataThe base64 encoded bytes of the local attachment, as a string. For example the base64 string representing the bytes of the signature. Decode the string to a byte array to get the image.
urlThe url to download the image. Normally this is a pre signed url to AWS S3 storage that expires after 1 week. AMS assumes you will download the image;  it is not retained permanently.