title: get finger print using morpho device in https
body: <p>i want to capture finger print using morpho device. i am able to do that but the thing is, i am getting error because the service i am using is http and my website is https. so i have to allow every time my website to read http url.
  what actually they are doing is, they are giving a service which allow me to access <a href="http://localhost:8080/CallMorphoAPI" rel="nofollow noreferrer">http://localhost:8080/CallMorphoAPI</a>. but this is for http not https. i installed morpho driver which started this service. so what i want to know if there any way so i can modify this service. I want Finger print scan using morpho 1300 e2 using java api.</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>function CallFingerAPI()
  {
    var url = "http://localhost:8080/CallMorphoAPI";
    var xmlhttp;
    if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
  
       xmlhttp=new XMLHttpRequest();
  
    }
    else
    {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  
    }
       xmlhttp.onreadystatechange=function()
    {
       if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
       {
         fpobject = JSON.parse(xmlhttp.responseText);
             console.log(fpobject.Base64BMPIMage);
  
             // Call Servlet
             function uploadThumb(image){
        var formdata = image;         
        var  fr = new FormData();
        fr.append("data", formdata);
        var id = "&lt;%=patientId%&gt;";
        var url = "ThumbUpload?patientId="+id;
    var xmlhttp = new XMLHttpRequest();
  
                                   xmlhttp.onreadystatechange = function(){
                      if(xmlhttp.readyState === 4 &amp;&amp; xmlhttp.status === 200){
                       var response = xmlhttp.responseText;
                          response = response.replace(/\r?\n|\r/g, "");
                          response = response.trim();
                          if(response === "Uploaded"){
                             alert("Uploaded");
                          }
                          else{
                              alert("Error");
                              }
                              }
  
                              };
                              try{
                              xmlhttp.open("POST",url,true);
                              xmlhttp.send(fr);
                          }catch(e){alert("unable to connect to server");
                          }
             }
      uploadThumb(fpobject.Base64BMPIMage);
         template = fpobject.Base64ISOTemplate;       
  
  
       }
    }
  
    var timeout = 5;
    xmlhttp.open("POST",url+"?"+timeout,true);
    xmlhttp.send();
  
  }
  </code></pre>