---
title: includeBytes
summary: Embed a file as a Uint8Array.
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/experimental/fn.includeBytes/
---

**Kind:** Function  
**Module:** [experimental](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/experimental/)  
**Package:** @fastly/js-compute 4.0.1  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/experimental.d.ts#L49

```javascript
includeBytes(path: string): Uint8Array<ArrayBuffer>
```

Embed a file as a Uint8Array.

**Note**: Can only be used during build-time initialization, not when processing requests.

**Parameters**

- `path`: `string` — The path to include, relative to the project's top-level directory.

**Returns**

`Uint8Array<ArrayBuffer>`
