06-17-2014 07:38 AM
06-23-2014 08:59 AM
01-30-2016 12:37 PM
string objectId = <Document Object ID> goes here
try
{
Document doc = session.GetObject(objectId) as Document;
ContentStream contentStream = (DotCMIS.Data.Impl.ContentStream)doc.GetContentStream();
using (var fileStream = File.Create(@".\" + contentStream.FileName))
{
contentStream.Stream.CopyTo(fileStream);
}
MessageBox.Show("File " + contentStream.FileName + " downloaded successfully");
}catch(Exception ex)
{
MessageBox.Show("File " + fileName + " download failed." + ex.Message);
}
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.