# `Gemini.Types.Blob`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/common/blob.ex#L1)

Binary data with MIME type for Gemini API.

# `blob_data`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/common/blob.ex#L15)

```elixir
@type blob_data() :: String.t()
```

Base64 encoded binary data.

# `mime_type`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/common/blob.ex#L18)

```elixir
@type mime_type() :: String.t()
```

MIME type of the data.

# `t`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/common/blob.ex#L9)

```elixir
@type t() :: %Gemini.Types.Blob{data: String.t(), mime_type: String.t()}
```

# `from_file`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/common/blob.ex#L37)

```elixir
@spec from_file(String.t()) :: {:ok, t()} | {:error, Gemini.Error.t()}
```

Create a blob from a file path.

# `new`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/common/blob.ex#L24)

```elixir
@spec new(String.t(), String.t()) :: t()
```

Create a new blob with base64 encoded data.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
