Author Topic: File extension in CMOD  (Read 3034 times)

dacurtis

  • Guest
File extension in CMOD
« on: April 07, 2016, 09:25:54 AM »
I am trying to find a way to identify either the MIME Type or File extension of an Image.  I know that the File Extension is on the VIEW Information panel and the Data Type would Identify an AFP (I am trying to distinguish whether Image is TIFF, PDF or AFP, don't care about other types)

Is there a way to get this data when doing a ARSDOC QUERY? if not what would be another way to obtain programmatically?

Thank you

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: File extension in CMOD
« Reply #1 on: April 07, 2016, 03:35:02 PM »
Yup, although this takes a little bit of advanced knowledge.

When your Application Group is defined, you have an Application ID Field that you use to assign to different Applications, in order to define different reports (by type, indexing requirements, etc.).

You should be able to get that Application ID field when you perform your query, as long as it's defined to be displayed in the folder.

The 'advanced knowledge' part is that you have to be able to equate the list of values from that Application ID field to a data type.  Which needs to be in a lookup table that your code can access, because you can't access THAT piece of information with arsdoc.

The good news is that the lookup table won't need to be updated very often.  Once an Application ID Value is set, and an Application is defined as having a specific data type, it can't be changed.

In all honesty, this is a requirement that's probably better suited to using the ODWEK Java API than trying to piece it together with arsdoc.

Good luck, and let us know what your ultimate solution is.  :)

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR