> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to display the key account manager's picture

> Get person image and display in the customer center

Encoding of binary data is normally behind the scenes. In CRMScript, it is represented as an array of Byte objects.

Binary data is base64 encoded when transmitted between the script and NetServer, but the encoding/decoding is handled behind the scenes.

The `NSStream` object is normally used for binary data, and in CRMScript this is represented as an array of Bytes.

## Example

We will now look at an example where we use the `NSStream` object to get a person's image. We will also display this image in the Customer Centre.

```crmscript theme={null}
#setLanguageLevel 3;

Integer id = getCgiVariable("assocId").toInteger();

NSUserAgent uAgent;
NSUser[] user = uAgent.GetUserFromEjUserId(id);

NSBLOBAgent bAgent;
NSImage image = bAgent.GetPersonImage(user[0].GetPerson().GetPersonId());

print("Content-Type: image/png\n\n");
printBinary(image.GetImage());
```


## Related topics

- [Display a person's picture](/en/api/web-services/howto/contact/get-person-image-rest.md)
- [How to display an image from the Blob table (services)](/en/api/web-services/howto/contact/display-image-from-blob-table-services.md)
- [Display person image](/en/api/web-services/howto/contact/display-person-image-ws.md)
- [Update the person's picture](/en/api/web-services/howto/contact/update-person-image-rest.md)
- [User settings](/en/developer-portal/partner/user-settings.md)
- [SCIM rules](/en/online/identity/scim/scim-rules.md)
- [How to set up a DKIM Record](/en/online/mail-services/mailgun/dkim/set-up.md)
