文档我目前使用深化发展作为露天GED和春季为framework.I要显示在导航文件而不认证requirment.So我该怎么办that.By的方式一个Java/JEE应用我在我的项目2个模块:前台和后台,它们通过休息calls.From通信的后端我试图传递对象的字节数组,但不幸的是我收到它作为字符串,所以我不能用it.So任何建议工作解决这个问题?显示没有认证
public Map<String, Object> getCourrierDetails(String idCourrier) throws Exception {
Map<String, Object> courriersDetails = runtimeService.getVariables(idCourrier);
courriersDetails.put("idCourrier", idCourrier);
DocumentDaoImpl dao=new DocumentDaoImpl();
Document docCmis = (Document) dao.getDocument("workspace://SpacesStore/73871a36-9a6c-42c6-b3e3-7d68362fe9c0");
byte[] myByteArray = readContent(docCmis.getContentStream().getStream());
ByteArrayResource resource = new ByteArrayResource(myByteArray) {
@Override
public String getFilename() {
return docCmis.getContentStreamFileName();
}
};
System.out.println(resource.getFilename());
//courriersDetails.put("resources", myByteArray);
System.out.println(courriersDetails.get("resources")+" rrrr");
//courriersDetails.put("contentStream",docCmis.getContentStream().getStream());
return courriersDetails;
}
据我所知你只能显示PDF文档,你将使用InputStream –