11.1.4 FromFile Method
Creates a binary representation of a file with the specified path.
Input Arguments
Name | Type | Mandatory | Description |
|---|---|---|---|
Path | String | Yes | The path to the source file |
Output Arguments
Name | Type | Mandatory | Description |
|---|---|---|---|
ErrorInfo | No | Indicates an error that might have occurred. |
Return Value
None
Examples
Define_Com Class(#XPRIM_Binary) Name(#FileToHash)
#FileToHash.FromFile Path('/tmp/file.bin')
. . .
#HashGenerator.Compute Input(#FileToHash) Result(#HashBytes)