send binary data over rest api