Hi,
I'm working on versioning with Documentum 7.1 and DFS.
I'm able to check in a new version of a document and I use this code (working perfectly).
ObjectIdentitySet _objIDSet = new ObjectIdentitySet ();
ObjectIdentity _objID = new ObjectIdentity (new ObjectId (_ID), _defaultDocbase);
_objIDSet.Identities.Add (_objID);
ContentProfile _contentProfile = new ContentProfile (FormatFilter.ANY, null, PageFilter.ANY, 1, PageModifierFilter.ANY, null);
OperationOptions _op = new OperationOptions ();
_op.ContentProfile = _contentProfile;
DataPackage _dp = CheckOut (_ID);
DataObject _checkInObj = _dp.DataObjects [0];
_checkInObj.Contents = null;
FileContent _fileContent = new FileContent ();
_fileContent.LocalPath = _contentPath;
_fileContent.RenditionType = RenditionType.PRIMARY;
_fileContent.Format = "";
_checkInObj.Contents.Add (_fileContent);
List<String> _labels = new List<String> ();
_labels.Add ("CURRENT");
DataPackage _resultDp;
try
{
_resultDp = _versionControlService.Checkin (_dp, VersionStrategy.NEXT_MAJOR, false, _labels, _op);
}
catch ( ServiceException sE )
{
throw new Exception (sE.InnerException.Message);
}
return _resultDp.DataObjects [0].Identity.Value.ToString ();
Is there a way to add a stream instead of the path of the file?
Thank you in advance.
Aqualung