Write File Activity

Description:

Writes a file to a specified location.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.AsyncCodeActivity
      Geocortex.Workflow.Activities.WriteFile

Function:

This activity writes a file to disk. It accepts the byte content of an arbitrary file and the file path to the location where you want to file to go. This activity provides a convenient wrapper for the System.IO.File.WriteAllBytes(string path, byte[] bytes)method.

The application executing the workflow must have write access to the file path.

In a Workflow:

The Write File activity can be used to save a file to disk, for example, save an image to a local drive or a network share.

Properties:

Name Description

In Arguments

Bytes

The byte content of the file.

Path

The full path to the location where you want the file to go. For example, C:\folder\file.txt. If the target file already exists, it will be overwritten. The application must have permission to write to this location.

Misc

Display Name

WriteFile

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Version Information:

Supported from: Geocortex Essentials 3.10.