05-27-2014 06:55 PM
05-27-2014 07:03 PM
05-27-2014 10:41 PM
InputStream stream = document.getContentStream(document.getContentStreamFileName()).getStream() ;
is used to get a rendition stream for current document ,if you just want to get content stream for the document,just use InputStream stream = document.getContentStream().getStream();
InputStream stream = document.getContentStream().getStream();
String path = "d:/pdf" ;
File dir = new File(path);
File file = new File(dir, "demo.DOC");
FileOutputStream out = new FileOutputStream(file) ;
org.apache.commons.io.CopyUtils.copy(stream, out);
out.close() ;
05-28-2014 07:12 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.