Skip to main content

Read Stream

The Read Stream activity reads data from a streaming source.

Configuring the Read Stream Activity

To configure the Read Stream activity, fill in the required fields in the activity panel.

Configuration

FieldRequiredDescriptionExample
NameRequiredSpecify the name for this activity.MyActivity
DescriptionOptionalSpecify the description for this activity.Reads a file from S3
ConnectionRequiredDrag and drop a S3Connection resource from the workspace.
File PathOptionalDirectory path where the file is locateddata/reports/2024/
File NameOptionalName of the file to be readreport-2024.csv
Batch SizeOptionalNumber of lines to read at once in each batch. To read entire content set to 0100
Line SeparatorOptionalCharacter(s) that separate lines in the file, leave empty for default Options: Line Feed (\n), Carriage Return + Line Feed (\r\n).Line Feed (\n), Carriage Return + Line Feed (\r\n)
Content TypeOptionalFormat of the file content to be read Options: CSV, JSON, XML, TEXT, BINARY.CSV, JSON, XML
Select ContextOptionalSelect an authentication context.

Advanced

FieldRequiredDescriptionExample
Working DirectoryOptionalOptional temporary directory used during SFTP operationsmy-data-bucket
Compression TypeOptionalType of compression used on the file, if any Options: NONE, ZIP, GZIP.NONE, ZIP, GZIP
Encryption TypeOptionalType of encryption used on the file, if any Options: NONE, PGP.NONE, PGP
Encryption ResourceOptionalCertificate or key resource for decrypting encrypted files

Input

FieldRequiredData TypeDescriptionExample
Working DirectoryOptionalStringOptional temporary directory used during SFTP operationsmy-data-bucket
File PathOptionalStringDirectory path where the file is locateddata/reports/2024/
File NameOptionalStringName of the file to be readreport-2024.csv
Batch SizeOptionalIntegerNumber of lines to read at once; If Set to 0 then entire content is read100

Output

FieldRequiredData TypeDescriptionExample
ContentOptionalStringContent.
Processed BytesOptionalIntegerNumber of bytes processed.
Has MoreOptionalBooleanWhether more data is available.false