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

# fl_get_inline

> 提取 FILE 值的 inline 字段。

**实验性功能**

[关于使用实验性功能的建议](/documents/cn/4.2/maturity/features.md)

提取 [FILE](/documents/cn/4.2/sql-reference/data-types/other-data-types/FILE.md) 值的 `inline` 字段。

## 语法

```sql theme={null}
VARBINARY fl_get_inline(FILE file_expr)
```

## 参数

`file_expr`：FILE 表达式，例如 [to\_file](/documents/cn/4.2/sql-reference/sql-functions/file-functions/to_file.md) 或 [try\_to\_file](/documents/cn/4.2/sql-reference/sql-functions/file-functions/try_to_file.md) 的结果。

## 返回值

返回 VARBINARY 值。FILE 值或 `inline` 字段为 NULL 时返回 NULL。字段值原样返回，不补默认值。保留空字节串及内嵌零字节，不对二进制内容进行编码或解码。

## 示例

### 示例 1：提取字段

```sql theme={null}
SELECT hex(fl_get_inline(to_file(named_struct('inline', to_binary('610062', 'hex'))))) AS inline_hex;
```

```plaintext theme={null}
+------------+
| inline_hex |
+------------+
| 610062     |
+------------+
```

### 示例 2：字段为 NULL

```sql theme={null}
SELECT hex(fl_get_inline(to_file(named_struct('uri', 'a.jpg')))) AS inline_hex;
```

```plaintext theme={null}
+------------+
| inline_hex |
+------------+
| NULL       |
+------------+
```

## keyword

FL\_GET\_INLINE, FILE


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