Skip to main content

fetch_image_bytes

Function fetch_image_bytes 

Source
pub fn fetch_image_bytes(reference: &str) -> Result<Vec<u8>, RedDBError>
Expand description

Fetch the bytes of an image referenced by a row field.

The reference is a URL/URI (ADR 0057 stores the reference, never the bytes). Supported schemes:

  • file://<path> and bare filesystem paths — read from disk;
  • http:// / https:// — fetched via ureq (rustls).

Network/IO failures surface as RedDBError so the enrichment lane’s retry-with-backoff and dead-letter machinery handles them like any other provider failure.