Hello ,
I have a method which gives content type of document
public String getContentType (String strPath){
String format = "";
try{
IDfFormatRecognizer formatRec = clientX.getFormatRecognizer(idfSession, strPath, null);
if(formatRec.getDefaultSuggestedFileFormat() != null) {
format = formatRec.getDefaultSuggestedFileFormat();
} else {
format = "unknown";
}
} catch(DfException e){
e.printStackTrace();
}
return format;
}
in this case if i have a word document with extension as ".doc" it gives me content type as "msw" , instead i want latest and most appropriate
content type , when i have checked dm_format by using DQL query " select distinct name from dm_format" for doc it gives me
msw |
|
msw12 |
|
msw12me |
|
msw12metemplate |
|
msw12template |
|
msw14 |
|
msw14template |
|
msw3 |
|
msw6 |
|
msw6template |
|
msw8 |
|
msw8template |
|
list , now if i have file extension with me how can i get the " name " ie latest and most appropriate content type from documentum for
file path which i will provide
Regards