Base 64 encoding of byte string or vector
res = base64encode(V)
res = base64encode( encodes
base 64 encoding and returns the encoded characters as a string. For
more information, see RFC 4648 —
Section 4, Base 64 Encoding. Base 64 encoding is used in some
contexts in internet messages where data must be transmitted in a
limited set of ASCII characters. Use
encode strings containing special characters that might be misinterpreted
as control characters by the transmission protocol.
encode arbitrary binary data.
V is a string or character vector,
converts it to bytes using the user default encoding. To use a different
character encoding, call the MATLAB®
V to a
before passing it to
V— Data to encode
Data to encode, specified as a string, character vector, or numeric vector.