# image-base64-wasm
Convert jpeg, png, gif, ico to base64, and vise versa ## Compatibility The library is compatible with **wasm** To build into wasm, uncomment the target line in `.cargo/config` ``` [build] # target = "wasm32-unknown-unknown" ``` ## Code Example - Read from a file ```rust extern crate image_base64_wasm; fn main() { let base64 = "base64 String"; let image = image_base64_wasm::from_base64(base64); let image_path = "local image file path" let base64 = image_base64_wasm::to_base64(image_path); } ``` - From `Vec