upload binary file, device side