--- title: "BLOB_DESCRIPTOR" sidebarTitle: "BLOB_DESCRIPTOR" description: "The blob_descriptor() scalar function: a BlobV2 column's payload location, without reading it." icon: file-binary keywords: ["blob_descriptor", "sql", "blob", "large binary", "scalar function"] availability: embedded: unavailable enterprise: available --- ```sql SQL icon="database" SELECT id, blob_descriptor(video) AS descriptor FROM videos ``` A plain `SELECT` of a [BlobV2](/management/table#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" 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" 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" 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 {#next} The BlobV2 column type this function describes.