Skip to main content

Veritran Docs

Save File Data to Disk

This function is used to save a file to a disk, taking as input the URL where the file can be found, or the string in hexadecimal or base64 format of the file.

Parameter Configuration

This function requires you to complete the input register values with the buffer format type, the name of the file to be created, and the information of the file to be saved.

Function ID

Register

Value

110

1

Input Registers

Register

Description

Mandatory

Value

390

Buffer format type

X

HEX_TYPE, BASE64_TYPE, URL_TYPE

391

Name of the file to be created

X

STRING

392

Information of the file to be saved to the disk

X

STRING

Output Registers

Register

Description

Value

112

Call Result

000

API_NO_ERROR

001

API_GENERIC_ERROR

002

API_WRONG_PARAMETERS_ERROR

290

File name

STRING

291

File extension

STRING

292

File location

STRING