Skip to content

Add Base64 image loads as example in URL -> Image Format #1274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions explore-analyze/find-and-organize/data-views.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,18 @@ The `{{value}}` template string URL-encodes the contents of the field. When a fi

When the formatter type is **Image**, the `{{value}}` template string specifies the name of an image at the specified URI.

You can render base64 images from data within a document by using the following **URL Template**:

```text
data:image/png;base64,{{value}}
```

For example:
![Data view editing to load base64 encoded PNG data](/explore-analyze/images/kibana-data_view_format_url_image_base64.png "")

The above configuration will render a PNG file in discover to appear like this:
![Sample output of PNG loading in Discover](/explore-analyze/images/kibana-discover-render_base64_image.png "")

When the formatter type is **Audio**, the `{{value}}` template string specifies the name of an audio file at the specified URI.

To pass unescaped values directly to the URL, use the `{{rawValue}}` string.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading