# decode_base64

Definition: | string res = decode_base64(sequence src)
Description: | Convert a base64 encoded string back to the original data. src: a string or sequence of characters with a length which is a multiple of 4.
pwa/p2js: | Supported.
Notes: | Any line breaks are automatically stripped from the in sequence (before checking that the length is a multiple of 4). The result is a string, but it may contain binary data rather than text. Note: As per RFC 2045, lines should not exceed 76 characters. Joining received encoded lines, which should each be between 4 and 76 (inclusive) bytes, and passing the lot to decode() in one go should be expected to be a little slower than passing individual lines and joining the results from decode() - simply because the decoded form is 3/4 or 75% of the size of the encoded form. However there may be cases such as splitting an already joined line, that tip things the other way. Generally speaking, the cost of transmission will completely outweigh any encode/decode costs, anyway.
Implementation: | See builtins\base64.e (an autoinclude)
See Also: | encode_base64