Send Files and attachment using Frappe.client

hi ,
i have two servers erpnext … am building a connector between them … i need to know what is the best way to send files by frappe.client to the destination server …
if frappe client doesn’t support this feature … how can i do it in the right way