Skip to main content

load_file_entry

Function load_file_entry 

pub async fn load_file_entry(
    entry: &FileEntry,
    is_wss: bool,
    source: Option<&AttachmentSource>,
) -> Result<(Vec<u8>, String), JsonRpcError>
Expand description

Resolve one file entry to its bytes and display filename, without persisting anything: decode data_b64, or read path through the authorized source.