Activity - readFile

Activity Type: Indexed File

Description

Read the contents of a file.

Examples

<readFile name="read">
  <file>some/file.ext</file>
  <bytes offset="3" length="9"/>
  <output name="fileAccessOutput" base64encode="false"/>
</readFile>
<readFile name="read">
  <file>some/file.ext</file>
  <lines offset="2" length="5"/>
  <output name="fileAccessOutput" base64encode="true"/>
</readFile>
<readFile name="read">
  <fromLocal from="searchOutput"/>
  <output name="fileAccessOutput" base64encode="true"/>
</readFile>

Specification

Element readFile:

Warning to Service Deployers

This activity can be used by clients to potentially access any directory on your server below that exposed by the associated OGSA-DAI service.

XML Schema

OGSA-DAI/schema/ogsadai/xsd/activities/file_reading.xsd

Implementation

OGSA-DAI/src/java/activities/uk/org/ogsadai/activity/indexedfiles/FileReadingActivity.java