> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.oai.gemini.get_image_data

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### get\_image\_data

```python theme={null}
get_image_data(image_file: str, use_b64=True) -> bytes
```

<b>Parameters:</b>

| Name           | Description   |
| -------------- | ------------- |
| `image_file`   | **Type:** str |
| `use_b64=True` |               |

<br />
