pub fn encode_file( logical_id: &str, file_name: Option<&str>, media_type: &str, transport_kind: Option<&str>, bytes: Vec<u8>, ) -> Result<Vec<u8>>
Encodes one file payload without storing it.