---
title: imageData()
framework: addressbook
role: symbol
role_heading: Instance Method
path: addressbook/abperson/imagedata()
---

# imageData()

Returns data that contains a picture of this person.

## Declaration

```swift
func imageData() -> Data!
```

## Return Value

Return Value Data containing a picture of this person

## Discussion

Discussion This method searches only the local file system and operates synchronously. To perform an asynchronous search or to search over a network, use beginLoadingImageData(for:). The returned data is in a QuickTime-compatible format. To create an image from it, use the NSImage method init(data:).

## See Also

### Managing Images

- [cancelLoadingImageData(forTag:)](addressbook/abperson/cancelloadingimagedata(fortag:).md)
- [beginLoadingImageData(for:)](addressbook/abperson/beginloadingimagedata(for:).md)
- [setImageData(_:)](addressbook/abperson/setimagedata(_:).md)
