服务器推技术
如果需要存盘,可以使用数字签名的ActiveX或者Java Applet
如果需要存盘,可以使用数字签名的ActiveX或者Java Applet
解决方案 »
- 高人求教?
- 网页上某图片在屏幕上的位置可以存到后台数据库中吗?
- 如何做到不同的web应用系统的用户统一登录?
- 一次DB访问,执行多个sql检索
- tomcat???
- java中关于arraylist的内存分配及回收问题
- SetCharacterEncodingFilter碰到过很奇怪的问题
- springMVC+uploadify3.1 上传大文件时出现IO ERROR [问题点数:100分]
- jsp怎样实现类似tabpage控件的功能
- 请问,如何防止JBuilder中的jsp页面的汉字变成 \u1234这种unicoed?
- 请高手看看:在数据库连接的时候,提示这个错误是什么意思啊:java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServ
- 想了很久也没解决的问题
那你把它放在关系型的数据库里不行嘛,到时定时去数据库里读数据不行嘛?
String strURL = request.getParameter("strURL");
String strFileSaveTo = request.getParameter("strFileSaveTo");
String strFileName = strURL.substring(strURL.lastIndexOf("/")+1);
File filePath = new File(strFileSaveTo + strFileName); if(!filePath.exists())
filePath.createNewFile(); URL url = new URL(strURL);
URLConnection conn = url.openConnection();
InputStream inStream = conn.getInputStream();
FileOutputStream fs=new FileOutputStream( strFileSaveTo+strFileName); byte[] buffer =new byte[1444];
while ((byteReader=inStream.read(buffer))!=-1)
{
fs.write(buffer,0,byteReader);
}
}
catch(Exception e)
{
e.printStackTrace();
}
String strURL = request.getParameter("strURL");
String strFileSaveTo = request.getParameter("strFileSaveTo");
其中strFileSaveTo是什么啊?客户端的ip吗
这样的话,那文件还是产生在服务器的e:\\temp\\上啊
strSaveFileTo=e:\\
你呢
----------------------------
<%@ LANGUAGE="VBSCRIPT"%>
<%
UserIP = Request.ServerVariables("REMOTE_ADDR")
strMac = GetMACAddress(UserIP)
Function GetMACAddress(UserIP)
Set net = Server.CreateObject("wscript.network")
Set sh = Server.CreateObject("wscript.shell")
sh.run "%comspec% /c nbtstat -A " & UserIP & " > c:\" & UserIP & ".txt",0,true
Set sh = nothing
Set fso = createobject("scripting.filesystemobject")
Set ts = fso.opentextfile("c:\" & UserIP & ".txt")
macaddress = null
Do While Not ts.AtEndOfStream
data = ucase(trim(ts.readline))
If instr(data,"MAC ADDRESS") Then
macaddress = trim(split(data,"=")(1))
Exit Do
End If
loop
ts.close
Set ts = nothing
fso.deletefile "c:\" & UserIP & ".txt"
Set fso = nothing
GetMACAddress = macaddress
End Function
%>
----------------------------------------
不知道对你有没有启发?
基本上解决了
那做数字签名怎么做呢