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".|