File reader service

1. Overview

The File reader service reads the content of a file and puts it in the MessagePart-Out. The content can be returned as TEXT, XML or BYTES.

image

In the table below, you will find an explanation of these properties.

All attributes with a * are mandatory.

Attribute Description

Name*

By default, we fill this out with the technical tag, followed by a serial number. Changing the name is optional.

Enabled

Set this value to true, if you want this service to be enabled.

File Location*

Location of the local source file. It must be a URI format starting with file: or classpath:.

Examples:

For Windows

[source,bash] ---- file://localhost/c$/WINDOWS/clock.avi file:///c:/WINDOWS/clock.avi ----

For Linux:

[source,bash] ---- file://localhost/etc/fstab file:///etc/fstab ----

Return Type*

TEXT for String, XML for Document and BYTES for Bytes Message Part. The default is TEXT.

MessagePart-Out

Name of the MessagePart in a ConnectMessage where the content of the file is being stored.

Delete after reading

This will enable or disable deletion of the file after it has been read.

Description

Description of the specific service. This is for documentation purposes.

Special ConnectPlaza® Headers

  • file_static_name : specify to override File Location at runtime.