Hi All,
I had through the help from the community accessed the id of the documents from inside the databse.The following is the code.
DfId dfId =new DfId(objectIdString); if (dfId.isObjectId())
{ System.out.println("Successfully fetched id " + dfId); }
IDfSysObject sysObj = (IDfSysObject) mySession.getObject(dfId);
System.
out.println("Content Type ++++++ " + sysObj.getContentType());
The sysObj.getContentType() provides the content type of the object.
My next task is to obtain the actual file name of the content i.e. object_name so that i can pass the actual file name like "MyDoc.doc" to a function.Could you please help me to achieve this goal.Thank You