title: How store image binary directly to db (no GridFS)
body: <p>How would I upload an image binary directly to the db? I read that GridFS is only needed for larger files.</p>
  
  <p>My input:</p>
  
  <pre><code>&lt;template name="pixUpload"&gt;
      &lt;input type="file" name="myFile" class="myPixInput"&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>And the template:</p>
  
  <pre><code>Template.pixUpload.events({
      'change .myPixInput': function(event, template) {
          event.preventDefault();
          var pixBinaryVar = event.target.myFile.value;
          MyPix.insert({
              binary: pixBinaryVar;
          })
      }
  })
  </code></pre>
  
  <p>It doesn't work and I get an error that the value is not defined. Why?</p>