<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [lite](./firestore_lite.md) &gt; [Bytes](./firestore_lite.bytes.md) &gt; [fromUint8Array](./firestore_lite.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_lite.bytes.md)

