java 进入共享盘

jar 包:jcifs.jar

BufferedInputStream bis =null;

String path = "smb:"+"//10.160.*.***/photo/Card/"+empno+".jpg";

SmbFile smbFile1=null;
   
   smbFile1 = new SmbFile(path,auth);
   InputStream in=new SmbFileInputStream(smbFile1);
 
   bis = new BufferedInputStream(in);
   
   SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
   

猜你喜欢

转载自www.cnblogs.com/lkkkkk/p/9327442.html