I am able to retrieve multipage file from FileNet P8 using ICI Api's.
but I am not able to retrieve a multiple-file content using ICI Api's. when i researched about the same i came across the following documentation about Repository Object
If the content is composed of multiple native files, only the contents of the first file will be retrieved.
Same as the case with "getNativeContentAsStream".
Is there any other Api that serve's my purpose?
Could anyone please look into this.
Pinned topic ICI : Issue in Retrieving multiple pages using ICI API's
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-01-04T08:43:41Z at 2012-01-04T08:43:41Z by vashreddy
Re: ICI : Issue in Retrieving multiple pages using ICI API's2011-12-27T20:52:01ZThis is the accepted answer. This is the accepted answer.Hi Vash,
Could you clarify what you mean by a multiple-file content?
In ICI, a multi-page content refers to a single content item that has multiple files associated with it. So in the API documentation, the terms "files" and "pages" actually mean the same thing. To retrieve other files associated with the same content item, you would need to use the methods: getNativeContentOfPage, getNativeContentOfPageAsFile, etc. Please refer to the API documentation of these methods for more details.
ICI also has the concept of MultiPartContent, which can be used to represent compound documents or content items that are made up of multiple content links. However, although FileNet P8 has this concept of compound documents, the ICI connector for FileNet P8 does not currently provide support for it. If this is what you are looking for, you may consider contacting ICI support for a feature request.
Hope this response answers the question!
Software Engineer - IBM Content Integrator
Re: ICI : Issue in Retrieving multiple pages using ICI API's2011-12-28T05:25:54ZThis is the accepted answer. This is the accepted answer.Hi neeta,
I was actually facing the problem with the following scenario:
Documents are ingested into FileNetP8.Generally what happens is i will have each document associated to each field say for ex:
AccountNumber: 1234567 has 'xyz.tiff' which has 40 pages which i am successfully retrieving.
Now the scenario is,i can have multiple files say for ex:
AccountNumber:1234567 has 1.'xxx.tiff' 2.'yyy.tiff' 3. 'zzz.tiff' which in turn has say 10 pages each. Now when i am trying to retrieve i can only able to view only xxx.tiff which has only 10 pages but not 'yyy.tiff' and 'zzz.tiff'. And yeah i have also checked whether it is a multipart content using content.getisMultiPart, it returned false. Is there any other way that i can try.
Re: ICI : Issue in Retrieving multiple pages using ICI API's2011-12-28T20:06:08ZThis is the accepted answer. This is the accepted answer.
- vashreddy 270004N8EU
It sounds like what you have is a "multi-page" content. You should be able to retrieve the other pages of the content using the getNativeContentOfPageAsFile method as follows:
- 1.'xxx.tiff' by calling getNativeContentOfPageAsFile(1)
- 2.'yyy.tiff' by calling getNativeContentOfPageAsFile(2)
- 3. 'zzz.tiff' by calling getNativeContentOfPageAsFile(3)
and so on..
Re: ICI : Issue in Retrieving multiple pages using ICI API's2011-12-28T20:22:23ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
Re: ICI : Issue in Retrieving multiple pages using ICI API's2011-12-29T11:08:17ZThis is the accepted answer. This is the accepted answer.Hi Neeta,
Thanks a lot! that helpe but could solve only half of my problem statement.
Consider the case where xxx.tiff has 10 pages and yyy.tiff has 10 pages and both these files are associated with one AccountNumber=1234567
Now when i say repo.getNativeContentOfPageAsFile(c.getContentID(), c.LATEST_VERSION, c.getDefaultFileNameOfPage(j), j);
it will download xxx.tiff and yyy.tiff individually.
Is there any API that ICI supports where i can download xxx.tiff and yyy.tiff as a single file and when i view i should be able to view the 10 pages of xxx.tiff appended by 10 pages of yyy.tiff?
We can append them using JAVA but its taking lot of time.
Could you help me in this regard.
Re: ICI : Issue in Retrieving multiple pages using ICI API's2011-12-29T18:31:25ZThis is the accepted answer. This is the accepted answer.
- vashreddy 270004N8EU
The files associated with a content are not always of the same file type in repositories. For example, one page can have a tiff file while the other can be a text file and so on. So ICI doesn't provide any APIs to append the native content pages and return as a single file. You would have to handle that in your code.
Hope this helps!
Re: ICI : Issue in Retrieving multiple pages using ICI API's2011-12-30T05:52:53ZThis is the accepted answer. This is the accepted answer.Hi Neeta,
Thanks a lot for the help.
You mean to say there is no way or no ICI provided API which could retrieve the files as a single file even if the files are in same format say "tiff".
Re: ICI : Issue in Retrieving multiple pages using ICI API's2012-01-03T19:54:56ZThis is the accepted answer. This is the accepted answer.
- vashreddy 270004N8EU
That's right -- there is no way to retrieve the files as a single file even if the files are in same format through the ICI API