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.

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.

© 1996–2020 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/v5.2.0/Base64-and-Binary-Data-Transmission.html