title: How do you import binary data with mongoimport?
body: <p>I've tried every combination to import binary data for Mongo and I CANNOT get it to work. I've tried using <code>new BinData(0, &lt;bindata&gt;)</code> and I've tried using
  <code>
  {
  "$binary" : "&lt;bindata&gt;",
  "$type" : "0"
  }
  </code>
  The first one gives me a parsing error. The second gives me an error reading "Invalid use of a reserved field name."</p>
  
  <p>I can import other objects fine. For reference, I'm trying to import a BASE64-encoded image string. Here is my current version of the JSON I'm using:</p>
  
  <pre><code>{"_id" : "72984ce4-de03-407f-8911-e7b03f0fec26","OriginalWidth" : 73, "OriginalHeight" : 150, { "$binary" : "", "$type" : "0" }, "ContentType" : "image/jpeg", "Name" : "test.jpg", "Type" : "5ade8812-e64a-4c64-9e23-b3aa7722cfaa"}
  </code></pre>