Get Bytes from Image Activity

Description:

Saves an image to an array of bytes.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.CodeActivity
      Geocortex.Workflow.Activities.GetBytesFromImage

Function:

This activity converts an image to a byte array.

In a Workflow:

This activity provides a convenient way to obtain the byte data for an image. This may be useful in conjuction with other activities, such as Add Attachment and Write File, which require byte data as inputs.

This activity allows you to control the image format used when saving to the byte array.

Properties:

Name Description

In Arguments

Format

The format to save the image data as. If not specified the original image format will be used.

For example:

Image

The source image.

Misc

Display Name

GetBytesFromImage

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.

Out Arguments

Result

The result byte array.

Version Information:

Supported from: Geocortex Essentials 3.15.