02-19-2015 05:18 AM
String fileName = filepart.getFilename();
File file = filepart.getFile();
String mimeType = new MimetypesFileTypeMap().getContentType(file);
ObjectId idOfCheckedOutDocument = doc.checkOut();
Document pwc = (Document) session.getObject(idOfCheckedOutDocument);
FileInputStream fis = new FileInputStream(file);
DataInputStream dis = new DataInputStream(fis);
ContentStream cs = session.getObjectFactory().createContentStream(fileName, Long.valueOf(file.length()), mimeType,dis);
ObjectId objectId = pwc.checkIn(false, null, cs, "");
ContentStream cs = new ContentStreamImpl(
fileName,
BigInteger.valueOf(file.length()),
mimeType,
dis);
03-05-2015 07:36 PM
07-07-2015 03:41 PM
07-24-2015 04:07 PM
07-30-2015 01:59 PM
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.