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. When you invoke this service, specify the following as input:
Input Variable | Description |
BizDocEnvelope | BizDocEnvelope Trading Networks created for the document. |
partName | Part name of the document content to retrieve. |
getAs | Whether to: ![*](bullet.gif) Retrieve a specified number of bytes of the document content ( bytes). The service will return a byte array that contains the retrieved bytes. ![*](bullet.gif) 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.