Products Downloads


French version


 

This function is used to convert the binary content of an image to an alphanumeric string according to a character encoding.


Context

  • Java client

  • Java server

  • Adelia Web Client

  • Adelia Cloud client

  • Event Adelia client


Parameters

IMAGE

SourceBinary

Binary to decode.

ALPHA Encoding Character encoding to use when converting the image to an alphanumeric 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.

ALPHA

Base64String

Target string resulting from the conversion.

NUM_BIN_2

Length

Length of the target string.

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.

Example

IMAGE

Picture

ALPHA(20) encoding

ALPHA(32000)

strb64

NUM_BIN_2

LgBuff

NUM_BIN_2

retCode


encoding = 'UTF-8'

LgBuff = 32000

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxImageToAlpha' Picture encoding strb64 LgBuff retCode



List of VaToolBx DLL functions by topic


↑ Top of page


 


  • Aucune étiquette