Skip to main content

Veritran Docs

Save File Data to Register

This function is used to select a file with the file selector of the device's OS to be encoded in base64 or hexadecimal format and saved in a register previously configured for this purpose.

Parameter Configuration

This function doesn't require the configuration of any parameters.

Function ID

Register

Value

110

3

Input Registers

Register

Description

Mandatory

Value

390

Codification Type. Type of encoding to be used with the file.

X

HEX_TYPE, BASE64_TYPE

391

Register Target. Number of the record where the file's encoded data will be stored.

X

Record number. Records 800,000 to 819,999 are excluded as they are used for other purposes.

392

File picker timeout. Numeric value that represents the seconds that the file selector will be active. After that time passes, the selector closes automatically and returns to the application showing an error code. The default value is 30 seconds.

N/A

INT

Output Registers

Register

Description

Value

112

Call Result

000

NO_ERROR

001

API_GENERIC_ERROR

002

API_WRONG_PARAMETERS_ERROR

003

API_ACCESS_FILE_ERROR

005

WRONG_CODE_FORMAT

006

CHOOSE_FILE_CANCELED

007

CHOOSE_FILE_TIMEOUT