Hi,
We have a requirement where in we need to retrieve documents stored in Documentum as a byte array using DFS 6.5. We are using the 'get' method of 'IObjectService'. From the responsePackage, we have used the following code to retrieve the file as a byte array:
DataPackage dataPackage = objectService.get(objectIdentitySet, operationOptions);
DataObject responseDataObject = dataPackage.getDataObjects().get(0); Content contentObject = responseDataObject.getContents().get(0);
byte[] outBytes = contentObject.getAsByteArray();
This is creating tmp files in the default java temp folder(java.io.tmpdir). After the code completes execution, these files are not deleted. We are running into space issues frequently because of this.
I would like to know at what stage are these tmp files created i.e., is it during the 'get ' operation or the 'getAsByteArray' operation or both. Also, is there a way in which we delete can these tmp files from the DFS code after all the processing is complete.
Help solicited.
Thanks in advance.
-Deepak