Retrieving Document Content from Hard Disk Drive Space
Use the wm.tn.doc:getContentPartData service to retrieve document content from the hard disk drive space.
The following table lists the inputs to specify when you invoke a service:
Input Variable | Description |
BizDocEnvelope | BizDocEnvelope Trading Networks created for the document. |
partName | Part name of the document content to retrieve. |
getAs | Whether to: ![*](chapterTOC_bullet.png) Retrieve a specified number of bytes of the document content ( bytes). The service will return a byte array that contains the retrieved bytes. ![*](chapterTOC_bullet.png) Obtain the document content using a Java InputStream object ( stream). The service will return a Java InputStream object. |
startIndex | If you specified bytes, the index into the document at which to start retrieving content. For example, to retrieve document content from the beginning, specify 0. |
byteCount | If you specified bytes, specify the number of bytes of content to retrieve. |
You can invoke this service for all documents, regardless of whether a document is considered large or not.