问题:
项目中有一个功能,原来是用ckfinder做的,可以选择本地图片上传至服务器,然后将服务器的图片显示在浏览器中,并可以将图片地址保存到数据库;现在客户觉得麻烦,提出连接扫描仪扫描后直接上传至服务器,并在浏览器上显示,如何实现
,有没有大神做过的?
这是客户给我的扫描仪文档
能用的就是这个html吧
我一开始以为是用jni驱动dll文件,但是我老大说直接可以用文档里的东西,现在老大出差去了,没辙了
这是那个html的源代码
<!DOCTYPEhtml>
<html>
<head>
<title>FHK
Scan Control Testtitle>
<styletype="text/css">
div#parameters{
width:450px;
float:left;
}
div#results{width:450px;
}
h3,h4{margin-left:5px}
h4{margin-bottom:3px}
td{background-color:#CCEEFF;
padding:9px;
}
textarea{
background-color:#CCEEFF;
border-style:groove;
border-width:2px;
}
style>
head>
<body>
<script>
functionselectScanner()
{
varrtn
= fhkScan.SelectSource(0);
if(rtn
== -1)
{
alert("Select
scanner error, error code = "+
fhkScan.ErrorCode);
}
}
functionInitSettings()
{
fhkScan.FileName = document.getElementByIdx_x("scanPath").value;
varpixelType
= 0;
varrdbPixelType
= document.getElementsByName("PixelType");
for(vari
= 0; i < rdbPixelType.length; i++)
{
if(rdbPixelType[i].checked)
{
pixelType = rdbPixelType[i].value;
break;
}
}
if(pixelType
== 0)
{
// Scan to Black & White
fhkScan.PixelType = 0;//
0 - Black & White, 1 - Grayscale