Base64 and Binary Data Transmission (GNU Octave (version 9.4.0))

#### 36.4.3 Base64 and Binary Data Transmission ¶

Some transmission channels can not accept binary data. It is customary to encode binary data in Base64 for transmission and to decode the data upon reception.

: `s =` base64_encode `(x)` ¶

  Encode a double matrix or array x into the base64 format string s.

  See also: base64_decode, matlab.net.base64decode, matlab.net.base64encode.

: `x =` base64_decode `(s)` ¶
: `x =` base64_decode `(s, dims)` ¶

  Decode the double matrix or array x from the base64 encoded string s.

  The optional input parameter dims should be a vector containing the dimensions of the decoded array.

  See also: base64_encode, matlab.net.base64decode, matlab.net.base64encode.

: `b64_str =` matlab.net.base64encode `(in)` ¶

  Convert in to a base64 encoded string b64_str.

  The input in can be a string or numeric vector. The output b64_str will be encoded according to RFC 4648.

  See also: matlab.net.base64decode, base64_decode, base64_encode, unicode2native.

: `out_vec =` matlab.net.base64decode `(b64_str)` ¶

  Convert base64 encoded b64_str to uint8 vector out_vec.

  The input b64_str must be a string vector. The output out_vec will be a uint8 vector that is decoded according to RFC 4648.

  See also: matlab.net.base64encode, base64_decode, base64_encode, native2unicode.