---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# NowAttachmentMetadata class - Android

# NowAttachmentMetadata class - Android {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

The NowAttachmentMetadata class provides functions that enable you
to encode and manage attachment metadata.
{#NowAttachmentMetadataAndroidAPI__id_ekm_nwf_4qb__entry__3}{#NowAttachmentMetadataAndroidAPI__NAMA-averageImageColor-row}{#NowAttachmentMetadataAndroidAPI__NAMA-chunckSizeInBytes-row}{#NowAttachmentMetadataAndroidAPI__NAMA-compressedSizeInBytes-row}{#NowAttachmentMetadataAndroidAPI__NAMA-created-row}{#NowAttachmentMetadataAndroidAPI__NAMA-createdBy-row}{#NowAttachmentMetadataAndroidAPI__NAMA-download-row}{#NowAttachmentMetadataAndroidAPI__NAMA-fileName-row}{#NowAttachmentMetadataAndroidAPI__NAMA-hash-row}{#NowAttachmentMetadataAndroidAPI__NAMA-imageHeight-row}{#NowAttachmentMetadataAndroidAPI__NAMA-imageWidth-row}{#NowAttachmentMetadataAndroidAPI__NAMA-isCompressed-row}{#NowAttachmentMetadataAndroidAPI__NAMA-mimeType-row}{#NowAttachmentMetadataAndroidAPI__NAMA-modificationCount-row}{#NowAttachmentMetadataAndroidAPI__NAMA-sizeInBytes-row}{#NowAttachmentMetadataAndroidAPI__NAMA-sourceSysId-row}{#NowAttachmentMetadataAndroidAPI__NAMA-sourceTableName-row}{#NowAttachmentMetadataAndroidAPI__NAMA-state-row}{#NowAttachmentMetadataAndroidAPI__NAMA-sysId-row}{#NowAttachmentMetadataAndroidAPI__NAMA-tags-row}{#NowAttachmentMetadataAndroidAPI__NAMA-updated-row}{#NowAttachmentMetadataAndroidAPI__NAMA-updatedBy-row}

| Name | Type | Description |
|-|-|-|
| averageImageColor | String | Most dominant color in the associated image. |
| chunkSizeInBytes | Integer | If 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​InBytes | Integer | Compressed size of the attachment. Unit: Bytes |
| created | Date | Date on which the attachment was created. |
| createdBy | String | Entity that created the attachment. |
| download | URL | Full download URL of the attachment associated with the metadata. |
| fileName | String | Name of the attachment file. |
| hash | String | Expected SHA256 digest for the attachment. A downloaded attachment is validated by comparing its computed digest to this SHA256 digest. |
| imageHeight | Integer | Height of image. Unit: Pixels |
| imageWidth | Integer | Width of image. Unit: Pixels |
| isCompressed | Boolean | Flag that indicates whether the attachment file is compressed. Possible values: * true: Attachment is compressed. * false: Attachment in not compressed. {#NowAttachmentMetadataAndroidAPI__ul_fnr_z5f_4qb} |
| mimeType | String | Attachment MIME type. |
| modificationCount | Integer | Number of times that the attachment was modified. |
| sizeInBytes | Integer | Size of the attachment. Unit: Bytes |
| sourceSysId | String | Sys_id of the attachment record to which the metadata is associated. |
| sourceTableName | String | Name of the source table in which the attachment resides. |
| state |   | Availability state. Valid values: * AVAILABLE * CONDITIONALLY * PENDING * UNAVAILABLE {#NowAttachmentMetadataAndroidAPI__ul_gnr_z5f_4qb} |
| sysId | String | Unique 32-character Globally Unique ID (GUID), that identifies each record in a ServiceNow instance. |
| tags | String | List of tags associated with the attachment. |
| updated | Date | Date on which the attachment was last modified. |
| updatedBy | String | Entity that updated the attachment. |
[Table 1. NowAttachmentMetadata Properties]

{#NowAttachmentMetadataAndroidAPI__id_ekm_nwf_4qb}

## 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) {#ariaid-title2}

Class returned by NowAttachement class. This object is Parcelable.
{#NAttMetaA-NowAttachmentMetadata__table_fdd_ynv_wpb__entry__3}

| Name | Type | Description |
|-|-|-|
| sysId | String | Unique 32-character Globally Unique ID (GUID), that identifies each record in a ServiceNow instance. |
| fileName | String | Name of the attachment file. |
| mimeType | String | Attachment MIME type. |
| isCompressed | Boolean | Flag that indicates whether the attachment file is compressed. Possible values: * true: Attachment is compressed. * false: Attachment in not compressed. {#NAttMetaA-NowAttachmentMetadata__ul_fnr_z5f_4qb} |
| sizeInBytes | Integer | Size of the attachment. Unit: Bytes |
| compressed​Size​InBytes | Integer | Compressed size of the attachment. Unit: Bytes |
| chunkSizeInBytes | Integer | If 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 |
| modificationCount | Integer | Number of times that the attachment was modified. |
| created | Date | Date on which the attachment was created. |
| createdBy | String | Entity that created the attachment. |
| updated | Date | Date on which the attachment was last modified. |
| updatedBy | String | Entity that updated the attachment. |
| download | URL | Full download URL of the attachment associated with the metadata. |
| hash | String | Expected 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 {#NAttMetaA-NowAttachmentMetadata__ul_gnr_z5f_4qb} |
| averageImageColor | String | Most dominant color in the associated image. |
| imageWidth | Integer | Width of image. Unit: Pixels |
| imageHeight | Integer | Height of image. Unit: Pixels |
| sourceTableName | String | Name of the source table in which the attachment resides. |
| sourceSysId | String | Sys_id of the attachment record to which the metadata is associated. |
| tags | String | List of tags associated with the attachment. |
[Table 2. Parameters]

{#NAttMetaA-NowAttachmentMetadata__table_fdd_ynv_wpb} {#NAttMetaA-NowAttachmentMetadata__table_gdd_ynv_wpb__entry__2}

| Type | Description |
|-|-|
| sysId (SysIdentifiable) | Unique 32-character GUID of the associated metadata record. |
[Table 3. Returns]

{#NAttMetaA-NowAttachmentMetadata__table_gdd_ynv_wpb}  
<br />

```

```


