This repository is based on image-base64-rs.
fn main() {
let base64 = "base64 String";
let image = image_base64::from_base64(base64);
let image_path = "local image file path"
let base64 = image_base64::to_base64(image_path);
}
Add the dependency to your Cargo.toml
:
[dependencies]
image-base64 = "0.1"