File Resources

The File Resource concept describes the characteristics of the files and defines in-stream data conversion when the file is written to the Virtual File System, when it is read from the Virtual File System and is used by some Data One components - typically, by file transports.

1907

In the File Resource section, you can specify:

  1. Settings related to the content of the file; e.g. text or binary, end of line for text files, charset for text files, compressed or secured.
  2. Disposition options; e.g. versioning of the file, creation of the file if it does not exist, etc.
  3. File positioning; e.g. internal or external.

The settings specified by the File Resource are divided into Local and Remote:
β€’ Local settings are the attributes the file will have when inserted in the Virtual File System.
β€’ Remote settings are related to the file being received from a remote origin or being sent to a remote destination. Remote settings describe the file content received or the file content to be sent.

File Resource settings relate to the contents of the file (local or remote) and are divided in:
β€’ Settings describing the content of the plain file; e.g. text or binary, record format, end of line, character set name.
β€’ Settings describing if and how the file is compressed.
β€’ Attributes describing if and how the file is secured; e.g. encryption type.

When a File Resource is defined, it is mandatory to specify both the local and remote settings even if only the remote settings are used. As a general rule, local settings are not used when the file is already present in the Virtual File System - for example, when the file is sent by a transport to a remote destination, the content of the file is described by the Virtual File System attributes and local settings of the File Resource are ignored.