
**Inheritance:**
java.lang.Object, [com.aspose.email.ContactPhoto](../../com.aspose.email/contactphoto)
```
public final class MapiContactPhoto extends ContactPhoto
```

Contains data and type of contact's photo.
## Constructors

| Constructor | Description |
| --- | --- |
| [MapiContactPhoto(byte[] data, int photoImageFormat)](#MapiContactPhoto-byte---int-) | Initializes a new instance of the [MapiContactPhoto](../../com.aspose.email/mapicontactphoto) class |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getData()](#getData--) | Gets an image data. |
| [getId()](#getId--) | Gets object identification information |
| [getPhotoImageFormat()](#getPhotoImageFormat--) | Gets a photo type. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### MapiContactPhoto(byte[] data, int photoImageFormat) {#MapiContactPhoto-byte---int-}
```
public MapiContactPhoto(byte[] data, int photoImageFormat)
```


Initializes a new instance of the [MapiContactPhoto](../../com.aspose.email/mapicontactphoto) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| data | byte[] | Image data of photo. |
| photoImageFormat | int | Image format of photo [MapiContactPhotoImageFormat](../../com.aspose.email/mapicontactphotoimageformat). |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getData() {#getData--}
```
public final byte[] getData()
```


Gets an image data.

**Returns:**
byte[]
### getId() {#getId--}
```
public final ObjectIdentifier getId()
```


Gets object identification information

**Returns:**
[ObjectIdentifier](../../com.aspose.email/objectidentifier)
### getPhotoImageFormat() {#getPhotoImageFormat--}
```
public final int getPhotoImageFormat()
```


Gets a photo type.

**Returns:**
int
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

