title: How to include an image in an http POST request
body: <p>I'm trying to make a POST request from the command line to my Flask app, and I want it to include an image. But I don't know how to include it with the command. I've only used strings as data successfully.</p>
  
  <p>So, if my POST request looks like this:</p>
  
  <pre><code> curl -i -H "Content-Type: application/json" -X POST -d '{"username":"user1", "password":"password", "image":##What do I put here?##}' http://localhost:5000/my_app/api/users
  </code></pre>
  
  <p>I don't know what to put in that <code>image</code> part of the JSON. I'm tagging flask in this question because it might be a specific answer with regards to flask.</p>
  
  <p>I would like to include an actual image here, and then on the Flask side of things, put the image in a folder of the app where all the uploads go, then save the path to the image in the database for later access. But, to do that, I need to know how to send an image in the first place. Any thoughts?</p>