Skip to main content

encode_png

Function encode_png 

Source
pub fn encode_png(png_path: &Path) -> Result<String, PoolError>
Expand description

Reads and base64-encodes a PNG file.

ยงErrors

Returns PoolError::Rpc when the PNG cannot be read.