binary upload/download using tmp