Technote (FAQ)
Question
I am using the IBM Content Manager OnDemand Web Enablement Kit (ODWEK) API ODFolder.storeDocument() to load documents into IBM CMoD server. The actual document length is not stored in IBM CMoD internally. If I use the ODHitProperties.getLength() API to get the actual length of the document, the value returned is 0.
How can I store the actual document length in IBM CMoD server, and retrieve it correctly?
Cause
If using IBM Content Manager ODWEK API ODFolder.storeDocument() to load documents into IBM CMoD server, the actual document length will not be stored as an internal property.
The ODHitProperties class is used to obtain the OnDemand internal property value of documents in the search result list. That is why using the ODHitProperties.getLength() API does not correctly return the actual length of the document, which is loaded via the ODFolder.storeDocument() API.
Answer
If the document is loaded via the ODFolder.storeDocument() API, in order to get the correct document length from CMoD server, a new field needs to be created in the application group to store the actual document length and to be used for retrieval.
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.