title: Using Curl data binary option, out of memory
body: <p>I am tyring to use curl to upload data. I need to upload the binary data.</p>
  
  <p>Unfortunately i think curl loads the file binary into the memory first so for large files this is an issue. The system I am using has a very small amount of memory available and therefore even a file that is 8mb big is struggling and I get:</p>
  
  <pre><code>curl: option --data-binary: out of memory
  curl: try 'curl --help' for more information
  </code></pre>
  
  <p>I have tried the chunked option, and that doesn't seem to work either.</p>
  
  <p>So far this is what I am trying:</p>
  
  <pre><code>curl --insecure -v --max-time 1200 ... --data-binary @/tmp/sd/record/....mp4 --header Transfer-Encoding: chunked -o UPLOAD_TOKEN -D Media_Binary_Data https://....upload
  </code></pre>
  
  <p>Is there a way that I can prevent the file from loading the binary into the memory or force it to store this data in an sd card and read it from there?</p>