title: Get blob image from file input using jQuery
body: <p>I am having some problems to take image as blob using jQuery:</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var file = $("#imgGaleria3")[0].files;
  
  if (file) {
      var reader = new FileReader();
      reader.readAsDataURL(file);
      reader.onload = function(e) {
          // browser completed reading file - display it
          alert(e.target.result);
      };
  }
  </code></pre>
  
  <p>And all the time im getting the same error:
      uncaught TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.</p>
  
  <p>How can I solve? I try some methods to read the data from file object with FileReader but nothing solves my problem.</p>
  
  <p>Thx for ur help guys</p>