Click or drag to resize

IIQAPIGetDocumentStream Method

Retrieve the backing file data associated with a specified ImageQuest document

Namespace:  Informa.ImageQuest.API.Library
Assembly:  Informa.ImageQuest.API.Library (in Informa.ImageQuest.API.Library.dll) Version: 14.3.0.0
Syntax
Stream GetDocumentStream(
	string token,
	Guid id
)

Parameters

token
Type: SystemString
User Authentication Token from a previous Login(String, String, String) or SystemLogin(String) call.
id
Type: SystemGuid
Unique document identifier of the document associated with the backing file.

Return Value

Type: Stream
A byte[] containing the contents of the backing file associated with the specified document.
Remarks

This method is documented as returning a generic Stream type. Typically, the SOAP proxy class generator will serialize this value into a fixed-length array of bytes.

This method will return the backing file associated with the specified unique document identifier. If a document has been revised using the ImageQuest desktop client, this method will always return the document's most recent revision. Access to previous revisions of a document is not currently available through the ImageQuest Web Services API.

Examples

See the example for Search(String, String, String) for an example of how to use GetDocumentStream(String, Guid).

See Also