bytes_to_base64

Function bytes_to_base64 

Source
pub fn bytes_to_base64(b: &[u8]) -> String
Expand description

Converts a byte slice to a Base64 encoded string. Uses the standard Base64 alphabet and padding.

§Arguments

  • b: A byte slice.

§Returns

The Base64 encoded string representation of the byte slice.