Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
26%
500 - 800 GB
3%
800 - 1200 GB
9%
1200 - 1500 GB
12%
1500 - 2000 GB
12%
> 2000 GB
21%
Total votes: 34

Baanboard at LinkedIn


Reference Content

 
base64.decode()
By patvdv at 26 Feb 2008 - 21:56

base64.decode()

Syntax

long base64.decode(string data.in, ref string data.out)

Description

Decodes the Base64 encoded input to binary output.

Arguments

data.in

String with Base64 encoded input. All non-Base64 characters are skipped, including null-characters and unexpected padding characters (=).

data.out

String which will receive the binary output.

Return values

The size of the binary output is returned. If this value is greater than the size of data.out, then the output is completely filled with binary output, but that is less than the complete decoded version of the Base64 encoded input.

To compute the size of the binary output, it is not enough to know the size of the Base64 encoded input, because all unexpected input characters are skipped. For each four not skipped Base64 encoded input characters, normally three binary output bytes are produced. However, when these four characters end with a single padding character (=), then two output bytes are produced, and when they end with two padding characters (==), then one output byte is produced.

Context

3GL function

Related topics


0
No votes yet


All times are GMT +2. The time now is 23:36.


©2001-2018 - Baanboard.com - Baanforums.com