<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Bytes](./firestore_.bytes.md) &gt; [fromUint8Array](./firestore_.bytes.fromuint8array.md)

## Bytes.fromUint8Array() method

Creates a new `Bytes` object from the given Uint8Array.

<b>Signature:</b>

```typescript
static fromUint8Array(array: Uint8Array): Bytes;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  array | Uint8Array | The Uint8Array used to create the <code>Bytes</code> object. |

<b>Returns:</b>

[Bytes](./firestore_.bytes.md)

