Products Downloads


French version


 

This function is used to decode a base64 encoded binary in an alphanumeric variable, taking character encoding into account.


Context

  • Windows client

  • Windows server

  • Java client

  • Java server

  • Adelia Web Client

  • Adelia Cloud client

  • Event Adelia client


Parameters

IMAGE

Base64Binary

Base64 encoded binary

ALPHA Encoding

Character encoding to use to convert the result of base64 decoding of the image into a string. This encoding value must be included in the character set registry defined by the IANA. It must also be included in the character sets supported by the JVM (Java) or libiconv library (Windows).

If encoding is not specified (empty string), the string to encode is converted using:

  • the JVM default encoding in Java,
  • the system's current ANSI code in Windows.

ALPHA

TargetString

Decoded string

NUM_BIN_4 Length

Length of the target string.

Important: in the event of a -2 execution error, this parameter is updated when the function call is returned (see the description of the ReturnCode parameter below).

NUM_BIN_2

ReturnCode

Operation return code:

 0: Operation completed successfully.

-1: Character encoding not supported.

-2: The target string is too short. In this case, when the function is returned, the "Length" parameter is updated with the recommended string size.

-3: Invalid IMAGE variable (C platform)


For example

IMAGE

pictureInBase64

ALPHA(1000)

stringOut

ALPHA(20) encoding
NUM_BIN_4 lenStringOut

NUM_BIN_2

retCode


lenStringOut = 1000

encoding = 'UTF-8'

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxBase64ImageToAlpha' pictureInBase64 encoding stringOut lenStringOut retCode



List of VaToolBx DLL functions by topic

↑ Top of page

  • Aucune étiquette