Blob

This page describes how to set and configure the Blob component.

A Blob (Binary Large Object), is a collection of binary data stored as a single entity. This component provides a download button to enable the download of such objects to local files directly from kdb via a byte array.

Screenshot

Set up a Blob component

To set up a Blob component, click-and-drag the component into the workspace and configure the properties defined in the following sections.

Blob component properties

The following sections provides details on how to configure the properties of the Blob component.

Basics

Open the Basics properties on the right and configure the properties described in the following table

Screenshot

Field

Description

Name

Enter a name for the component.

Data Source

Configure a kdb query to return:

  • name: a symbol string for the target filename

  • mime-type: a symbol string to indicate the target file mime-type

  • data: a byte array for the binary file data

For example:

q

Copy
([]name:enlist `test.pdf; mimeType: enlist `$"application/pdf"; data: enlist (...) )

where (...) contains details of the byte array to download.

Icon

Display icon in the Blob button.

Label

Text description for the Blob button.

Enabled

Button is clickable when set to 'true' or visible, but non-clickable, when set to 'false'.

Style, Margins and Format

Refer to Style for details.

Further Reading