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

# BLOB_DESCRIPTOR

> The blob_descriptor() scalar function: a BlobV2 column's payload location, without reading it.

Enterprise only

```sql SQL icon="database" theme={"theme":{"light":"vitesse-light","dark":"catppuccin-mocha"}}
SELECT id, blob_descriptor(video) AS descriptor FROM videos
```

A plain `SELECT` of a [BlobV2](https://docs.lancedb.com/enterprise/v1-16-0/management/table.md#managed-blobs) column returns
its payload as `large_binary`. `blob_descriptor` instead returns a small
struct describing where the payload lives, without reading the payload.
Pass one row's descriptor to
the SDK's blob file reader to open that payload directly:

```python Python icon="python" theme={"theme":{"light":"vitesse-light","dark":"catppuccin-mocha"}}
rows = db.execute_query("SELECT id, blob_descriptor(video) AS descriptor FROM videos").read_all().to_pylist()
with table.open_blob_file(rows[0]["descriptor"]) as reader:
    payload = reader.read()
```

```typescript TypeScript icon="typescript" theme={"theme":{"light":"vitesse-light","dark":"catppuccin-mocha"}}
const rows = await table
  .query()
  .select({ descriptor: "blob_descriptor(video)" })
  .toArray();
const reader = await table.openBlobFile(rows[0].descriptor);
if (reader) {
  const payload = await reader.read();
  await reader.close();
}
```

```rust Rust icon="rust" theme={"theme":{"light":"vitesse-light","dark":"catppuccin-mocha"}}
use lancedb::{blob::BlobDescriptor, Table};

async fn read_descriptor(
    table: &Table,
    descriptor: &BlobDescriptor,
) -> lancedb::Result<()> {
    let reader = table.open_blob_file(descriptor).await?;
    let payload = reader.read().await?;
    println!("{} bytes", payload.len());
    reader.close().await?;
    Ok(())
}
```

A descriptor is pinned to the table version it was read at: it keeps
resolving correctly even after the table is appended to and checked out to a
newer version.

## What to read next

> [card] [Managed blobs](https://docs.lancedb.com/enterprise/v1-16-0/management/table.md#managed-blobs)
>
> The BlobV2 column type this function describes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.