Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

NowAttachmentMetadata class- Android

The NowAttachmentMetadata class provides functions that enable you to encode and manage attachment metadata.

NameTypeDescription
averageImageColorStringMost dominant color in the associated image.
chunkSizeInBytesIntegerIf the attachment is too large to be transferred in a single packet, the maximum of bytes \(chunk\) of the attachment file to send in an individual packet.Unit: Bytes
compressed​Size​InBytesIntegerCompressed size of the attachment.Unit: Bytes
createdDateDate on which the attachment was created.
createdByStringEntity that created the attachment.
downloadURLFull download URL of the attachment associated with the metadata.
fileNameStringName of the attachment file.
hashStringExpected SHA256 digest for the attachment.A downloaded attachment is validated by comparing its computed digest to this SHA256 digest.
imageHeightIntegerHeight of image.Unit: Pixels
imageWidthIntegerWidth of image.Unit: Pixels
isCompressedBooleanFlag that indicates whether the attachment file is compressed.Possible values: - true: Attachment is compressed. - false: Attachment in not compressed.
mimeTypeStringAttachment MIME type.
modificationCountIntegerNumber of times that the attachment was modified.
sizeInBytesIntegerSize of the attachment.Unit: Bytes
sourceSysIdStringSys\_id of the attachment record to which the metadata is associated.
sourceTableNameStringName of the source table in which the attachment resides.
state Availability state.Valid values: - AVAILABLE - CONDITIONALLY - PENDING - UNAVAILABLE
sysIdStringUnique 32-character Globally Unique ID \(GUID\), that identifies each record in a ServiceNow instance.
tagsStringList of tags associated with the attachment.
updatedDateDate on which the attachment was last modified.
updatedByStringEntity that updated the attachment.

Parent Topic:Mobile SDK - Android

NowAttachmentMetadata - NowAttachmentMetadata(sysId: String, fileName: String, mimeType: String, _isCompressed: String, _sizeInBytes: String, _compressedSizeInBytes: String, _chunkSizeInBytes: String, _modificationCount: String, created: Date, createdBy: String, updated: Date, updatedBy: String, download: String?, hash: String, state: NowAttachmentMetadata.State, averageImageColor: String, _imageWidth: String, _imageHeight: String, sourceTableName: String, sourceSysId: String, tags: String)

Class returned by NowAttachment class. This object is Parcelable.

NameTypeDescription
sysIdStringUnique 32-character Globally Unique ID \(GUID\), that identifies each record in a ServiceNow instance.
fileNameStringName of the attachment file.
mimeTypeStringAttachment MIME type.
isCompressedBooleanFlag that indicates whether the attachment file is compressed.Possible values: - true: Attachment is compressed. - false: Attachment in not compressed.
sizeInBytesIntegerSize of the attachment.Unit: Bytes
compressed​Size​InBytesIntegerCompressed size of the attachment.Unit: Bytes
chunkSizeInBytesIntegerIf the attachment is too large to be transferred in a single packet, the maximum of bytes \(chunk\) of the attachment file to send in an individual packet.Unit: Bytes
modificationCountIntegerNumber of times that the attachment was modified.
createdDateDate on which the attachment was created.
createdByStringEntity that created the attachment.
updatedDateDate on which the attachment was last modified.
updatedByStringEntity that updated the attachment.
downloadURLFull download URL of the attachment associated with the metadata.
hashStringExpected SHA256 digest for the attachment.A downloaded attachment is validated by comparing its computed digest to this SHA256 digest.
state Availability state.Valid values: - AVAILABLE - CONDITIONALLY - PENDING - UNAVAILABLE
averageImageColorStringMost dominant color in the associated image.
imageWidthIntegerWidth of image.Unit: Pixels
imageHeightIntegerHeight of image.Unit: Pixels
sourceTableNameStringName of the source table in which the attachment resides.
sourceSysIdStringSys\_id of the attachment record to which the metadata is associated.
tagsStringList of tags associated with the attachment.
TypeDescription
sysId (SysIdentifiable)Unique 32-character GUID of the associated metadata record.