I’m trying to send a JPEG file to a device via a POST command. I’m supposed to send a binary post. I’ve tried using image/jpeg, application/octet-stream, multipart/url-encoded. None give me the result I am expecting. The device should give back an status of 202 if the file transfer is successful. Instead I’m just getting back 200.
The specific Xojo object I’m using is a Xojo.Net.HTTPSocket in an iOS app, but I posted in General as this could apply to a URLConnection as well.
What am I doing wrong?