---
title: "Response.Bytes method"
canonical: https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Response/Bytes
---

# Response.Bytes method

Creates a response from bytes with the content type you name, such as `image/png`.

```csharp
public static Response Bytes(byte[] body, string? contentType, ushort status = 200)
```

| parameter   | description                                                                                                                                                      |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| body        | The bytes to send. The array is kept, not copied: do not change it after the call.                                                                               |
| contentType | The value of the `content-type` header. Null sends no content type, as [`Raw`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Response/Raw) does. |
| status      | The HTTP status code.                                                                                                                                            |

## See Also

- class [Response](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Response)
- namespace [Isoplane](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk)
