|

楼主 |
发表于 2017-11-24 16:49:53
|
显示全部楼层
本帖最后由 yant 于 2017-11-24 16:56 编辑
我在action 中 ,写了一个方法。我要实现把 附件 读取到,并且放到共享文件夹里面。代码如下:
public static void download(String id,String target){
Docs docs = new Docs();
Doc doc = docs.query("C7C4532903E000015F511145FC22FAF0",null, null, null, null).get("C7C4532903E000015F511145FC22FAF0");
try {
doc.download(new SmbFileOutputStream("smb://administrator:a3647823@服务器IP/new/"+doc.getsDocName()));
System.out.println("上传成功");
}catch (Exception e) {
System.out.println("上传失败");
e.printStackTrace();
}
}
我已经引入了 jcifs .jar 共享文件夹的jar 包,但是却报了一个 jcifs.smb.SmbFileOutputStream类找不到的错误??
|
|