<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@digitalpersona/core](./core.md) &gt; [FaceImage](./core.faceimage.md) &gt; [toBioSample](./core.faceimage.tobiosample.md)

## FaceImage.toBioSample() method

Exports the face image data to a [BioSample](./core.biosample.md) object.

<b>Signature:</b>

```typescript
toBioSample(format?: BioSampleFormat, purpose?: BioSamplePurpose, sdkVersion?: number): BioSample;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  format | <code>BioSampleFormat</code> |  |
|  purpose | <code>BioSamplePurpose</code> |  |
|  sdkVersion | <code>number</code> |  |

<b>Returns:</b>

`BioSample`

