title: jquery, how to upload image of input(file) via webservice to codebehind and read there
body: <p>i want to save a input (type = file) image to database (asp.net &amp; mssql),<br>
  in this case i use web service, so i can't use runat= server, or i can't use server side controls. </p>
  
  <p>in client side, user chose a picture, and i must save it binary to database.  </p>
  
  <pre><code>var exts = ['jpg', 'jpeg', 'png', 'gif'];  
  var file = $(this).val();
  if (file) {
                  var get_ext = file.split('.');
                  get_ext = get_ext.reverse();
                  if ($.inArray(get_ext[0].toLowerCase(), exts) &gt; -1) {
                      if ((Math.round((this.files[0].size) / 1024)) &gt; 35) {
                          alert("PLEASE REDUCE FILE SIZE");
                      } else {
                          //everything is ok
                      }
                  } else {
                      alert("PLEASE CORRECT FORMAT");
                  }
              } else {
                  alert("PLEASE DEFINE FILE");
    }
  </code></pre>
  
  <p>i can check file selected, type and size and know need to upload.</p>
  
  <p>what can i do?
  is it possible to support, ie? if yes which version?</p>
  
  <p>thank you</p>