encode

Encodes all bytes from the specified byte array into a newly-allocated byte array using the Base64 encoding scheme. The returned byte array is of the length of the resulting bytes.

Return

A newly-allocated byte array containing the resulting encoded bytes.

Parameters

src

the byte array to encode