Skip to main content

read_image_file_any_path

Function read_image_file_any_path 

Source
pub async fn read_image_file_any_path<P: AsRef<Path>>(
    file_path: P,
) -> Result<ImageData>
Expand description

Reads an image file from an absolute path (or already validated path) and converts it to base64.

This skips relative-path safety checks and should only be used when the caller has already validated the path scope and intent.