Emirates ID reader support All web browsers using Windows Service
In this blog I will explain Emirates ID reader support all web browsers using Windows Service, before this one I have developed solutions for Old Emirates ID, then upgraded that one to New Emirates ID too, but both of those were based on Google Chrome Extension and were limited to Chrome browser only.
But this solution is based on Windows Service that’s why there is no limitation to use any specific browser, instead it will work on Google Chrome, Firefox, Safari, Opera, Internet Explorer, Microsoft Edge or any other browser or even desktop application running at that PC.
This Windows Service is not continuously scanning card in infinite loop, instead it will only scan card when it receives HTTP request, after getting HTTP request it will start scanning Emirates ID and put all the data in JSON string along with image as base64 string, and return as response to the requester.
There will be just 2 steps to configure it on any PC
1- Download, Install and Start Windows Service
1.1- Download Windows Service files
1.2- Open cmd as administrator to install Service
In below command Replace installUtil.exe path and the Windows Service paths as per your environment, and then run it
1 2 3 |
:: correct both paths "C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "c:\Alam EID Reader Service\AlamEidReader.exe" :: run it |
1.3- Go to Services using services.msc locate Alam Emirates ID Reader, Double click it and then click Start button
It will provide you a URL for example Http://localhost:8585/alameid
Calling that URL will initiate the Windows Service to start scanning Emirates ID and return the data as JSON string.
You can call it through ajax request from your web application or via HttpClient request from you desktop applications too.
2- Make HTTP request from website to this Windows Service
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
$(function(){ $('.btn-readCard').click(function(e){ e.preventDefault(); var rnd = Math.floor(Math.random() * 100000); $.ajax({ url:'http://localhost:8585/alameid?rnd='+rnd, beforeSend:function(){ $('.eid-wrapper').addClass('loading'); },success:function(resp){ try{ var json = JSON.parse(resp); $('.eid-wrapper').removeClass('loading'); if( json.Error != "" ){ alert(json.Error); }else{ $("#txt_EIDNumber").val(json.EIDNumber); $("#txt_Name").val(json.Name); $("#txt_NameAr").val(json.NameAr); $("#txt_Phone").val(json.Phone); $("#txt_Mobile").val(json.Mobile); $("#txt_Email").val(json.Email); $("#txt_Sex").val(json.Sex); $("#txt_DOB").val(json.DOB); $("#txt_ResidencyIssue").val(json.ResidencyIssue); $("#txt_ResidencyExpiry").val(json.ResidencyExpiry); $("#txt_NationalityID").val(json.NationalityID); $("#txt_Nationality").val(json.Nationality); $("#txt_NationalityArabic").val(json.NationalityArabic); $("#txt_PassportNumber").val(json.PassportNumber); $("#txt_ResidencyNumber").val(json.ResidencyNumber); $("#txt_cardVersion").val(json.cardVersion); $("#imgPhoto").attr('src','data:image/png;base64,'+json.Photo) } }catch(err){ $('.eid-wrapper').removeClass('loading'); alert("Error reading Emirates ID"); } },error:function(){ $('.eid-wrapper').removeClass('loading'); alert("Error reading Emirates ID, Windows Service might not running."); } }); }); }); |
Currently there is no trail version available, but you can contact Alam at alampk.com or productsalampk.com or whatsapp at 0509187558 to get paid version of it.
Watch the Demo here
Comments