# ImageBytesLoader

> **Class** in `langchain_google_vertexai`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-vertexai/_image_utils/ImageBytesLoader)

Loads image bytes from multiple sources given a string.

Currently supported:

- Google cloud storage URI
- B64 Encoded image string
- Local file path
- URL

## Signature

```python
ImageBytesLoader(
    self,
    project: str | None = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `project` | `str \| None` | No | Google Cloud project id. (default: `None`) |

## Constructors

```python
__init__(
    self,
    project: str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `project` | `str \| None` |


## Methods

- [`load_bytes()`](https://reference.langchain.com/python/langchain-google-vertexai/_image_utils/ImageBytesLoader/load_bytes)
- [`load_part()`](https://reference.langchain.com/python/langchain-google-vertexai/_image_utils/ImageBytesLoader/load_part)
- [`load_gapic_part()`](https://reference.langchain.com/python/langchain-google-vertexai/_image_utils/ImageBytesLoader/load_gapic_part)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/982e4015b249de8b9ba1e787746d8cc1f6d6b790/libs/vertexai/langchain_google_vertexai/_image_utils.py#L28)