The Base64 Encode File Task, when applied, will encode a file into a Base64 string.
|Constant Name||The name of the constant to drive (including the DWConstant prefix).|
|File Path||The path to the file which will be encoded into a Base64 string.|
|Title||Changes the Title (not the name) of the task.|
To encode the content of the file MyData.txt, which contains the text "DriveWorks Documentation":
|Property||Example rule||Example result||Meaning|
|Constant Name||DWConstantBase64EncodeFileResult||RHJpdmVXb3JrcyBEb2N1bWVudGF0aW9u||DriveWorks will put the encoded content in the constant called Base64EncodeFile.|
|File Path||DWVariableDataLocation & FileToEncodeReturn||If the variable DataLocation equals "C:\DataToEncode\" and the FileToEncode control value equals "MyData.txt", the path would be evaluated to "C:\DataToEncode\MyData.txt".||DriveWorks will encode the content of the file "C:\DataToEncode\MyData.txt".|
This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.
Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.
This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.
The status output navigation is as follows:
Success with Warnings
Failed (one of the following occurred)