# ImageBytesLoader

> **Class** in `langchain_google_genai`

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

Loads media bytes from multiple sources given a string.

(Despite the class name, this loader supports multiple media types including
images, PDFs, audio, and video files.)

Currently supported:

- Base64 encoded data URIs (e.g., `data:image/jpeg;base64,...` or
    `data:application/pdf;base64,...`)
- HTTP/HTTPS URLs
- Google Cloud Storage URIs (gs://) passed directly to the API as file
    references

## Signature

```python
ImageBytesLoader()
```

## Methods

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

---

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