DriveWorks Pro 15: Base64 Encode File [send feedback...]

Base64 Encode File

The Base64 Encode File Task, when applied, will encode a file into a Base64 string.


Property NameDescription
Constant NameThe name of the constant to drive (including the DWConstant prefix).
File PathThe path to the file which will be encoded into a Base64 string.
TitleChanges the Title (not the name) of the task.


To encode the content of the file MyData.txt, which contains the text "DriveWorks Documentation":

PropertyExample ruleExample resultMeaning
Constant NameDWConstantBase64EncodeFileResultRHJpdmVXb3JrcyBEb2N1bWVudGF0aW9uDriveWorks will put the encoded content in the constant called Base64EncodeFile.
File PathDWVariableDataLocation & FileToEncodeReturnIf 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".

Table of Contents