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?
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.
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.