Skip to main content

Read File

The Read File activity reads a file from the local file system and returns its content.

Configuring the Read File Activity

To configure the Read File 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
ResourceOptionalDrag and drop a ABSConnection resource from the workspace.
Container NameOptionalSpecify the container name for this activity./data/uploads
File PathOptionalSpecify the file path for this activity.data/reports/2024/report.csv
File NameOptionalSpecify the file name for this activity.report-2024.csv
Encryption TypeOptionalSelect the encryption type for this activity. Options: NONE, PGP.NONE, PGP
Encryption ResourceOptionalCertificate resource used for encryption resource.
Content TypeOptionalSelect the content type for this activity. Options: CSV, JSON, XML, TEXT, BINARY.CSV, JSON, XML
Compression TypeOptionalSelect the compression type for this activity. Options: NONE, ZIP.NONE, ZIP
Buffer SizeOptionalNumeric value for buffer size.

Input

FieldRequiredData TypeDescriptionExample
File PathOptionalStringFull path to the file in the storage location to be read.data/reports/2024/report.csv
File NameOptionalStringOptional file name. Used with working directory if filePath is not provided.report-2024.csv
StreamingOptionalBooleanIndicates whether the file should be read in streaming mode.

Output

FieldRequiredData TypeDescriptionExample
ContentOptionalString
Content LengthOptionalNumber0
File NameOptionalStringreport-2024.csv
PathOptionalString