.CONVERT TO BASE64

This subroutine converts Appx raw data to Base64 data.


Usage:

    PASS        <base64 data>             FIELD           SHARE? Y
    PASS        <raw data>                FIELD           SHARE? N
    PASS        <length to encode>        FIELD           SHARE? N
    GOSUB   --- .CONVERT TO BASE64
     *       Check for errors
    IF      --- .CONVERT TO BASE64        NE

Description:

This subroutine converts Appx raw data to Base64 data. All parameters are required, the subroutine will CANCEL if they are not PASSed.

<base64 data> is the location to put the data converted to base64 (Required). This must be PASSed with Share "Y" to return the result.

<raw data> is the location of the raw data to be converted to base64 data (Required).

<length to encode> is the number of bytes to encode to base64 (Required). This is an integer in the range of 1-24000.

If you want to convert base64 data to raw data, see .CONVERT FROM BASE64.

Comments:

Read what other users have said about this page or add your own comments.


-- BrianRyan - 2022-04-29


This topic: Main > WebHome > APPX510Features > APPXRuntimeSubroutineAPI > 0LASubrConvertToBase64
Topic revision: r5 - 2022-05-02 - BrianRyan
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback