shadow-1 / yi-hack-v3

Alternative Firmware for Xiaomi Cameras based on Hi3518e Chipset
GNU General Public License v3.0
1.16k stars 154 forks source link

Curl data binary out of memory #204

Closed mfizz1 closed 6 years ago

mfizz1 commented 6 years ago

I am using this version of the hack and I am trying to upload a file using curl. The site I am uploading to requires the media files to be sent using binary.

The curl I am using is the one compiled for this camera mentioned a few posts back.

curl --insecure -v --max-time 1200 -H Host: ...-H Authorization: xxx -H Content-Type: application/octet-stream --request POST --data-binary @/tmp/sd/record/....mp4 --header Transfer-Encoding: chunked -o UPLOAD_TOKEN -D Media_Binary_Data https://...uploads

Is there a way to get it not load into memory or an alternative I can use?

mfizz1 commented 6 years ago

Worked it out use -T and -X Post to overcome memory issue