Skip to main content

encode_image

Function encode_image 

Source
pub fn encode_image(bytes: &[u8]) -> String
Expand description

The standard, padded base64 encoding of an image’s raw bytes (issue #628) — the form every provider expects for inline image data. Here so an adapter needs no base64 dependency of its own.