文檔我目前使用深化發展作爲露天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 –