base64_to_bytes

Function base64_to_bytes 

Source
pub fn base64_to_bytes(s: &str) -> Result<Vec<u8>, String>
Expand description

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

§Arguments

  • s: A string slice representing the Base64 encoded data.

§Returns

A Result containing the byte vector on success, or an error message string on failure.