|
楼主 |
发表于 2014-8-27 17:28:26
|
显示全部楼层
终于有进展。但是我执行后台上传附件时候。public static void createVersionDoc(String docID, String docName) throws UnsupportedEncodingException, DocumentException, Exception {
Docs docs = new Docs();
com.justep.doc.Doc doc = docs.query(null, "/defaultDocNameSpace", null, null, null).get(docID);
File outPutFile = new File("c:/" + docName);
doc.download(new FileOutputStream(outPutFile));
DocUtils.lock(docID);
doc.setsDocName("手机拍照" + docName);
doc.upload(new File("c:/" + docName));
docs.createVersion();
outPutFile.delete();
}
无法实例化Docs docs = new Docs(); 这个类应该在哪个包呢。 |
|