Navigation

reader

On this page

Definition

reader

Reads a binary input stream and outputs a string.

The reader action cannot be in the first stage of a pipeline. The stage preceding the encode action stage must output a stream of binary data.

The reader action stage has the following syntax:

{"service": "", "action": "reader", "args": {}}

The reader action has no argument.

Example

Consider the following pipeline of two stages:

[
  {service: "", action: "binary", args: {encoding: "base64", data: "VGhlIGNvdyBpcyBicm93bi4="}},
  {service: "", action: "reader", args: {}}
]

Stage1: The binary stage outputs a decoded output stream of binary data.

Stage2: The reader stage reads the input stream and outputs the following string:

"The cow is brown."