|
发表于 2017-10-27 15:12:57
|
显示全部楼层
按照上面说的那样做了之后图片大小并没有改变。能交流下什么怎么解决的吗? 谢谢
Docs docs = new Docs();
DocUtils.unlock(docID);
Doc doc = docs.query(docID, docPath,null,null,null).get(docID);
String FileName =doc.getsDocName();
String bizRoot = FileSystemWrapper.instance().getBase();
bizRoot = bizRoot.replace("BIZ", "UI2");
FileName =bizRoot+"/AppPro/ArtBookManager/uploadFile/"+FileName;
File outPutFile =new File(FileName);
//这里设置文件的大小,并没有生效
doc.setsSize(10f);
doc.download(new FileOutputStream(outPutFile));
doc.upload(outPutFile);
docs.createVersion(); |
|