Method GetThumbnail
GetThumbnail(String, String, String, String, Int32)
Download thumbnail
Declaration
Stream GetThumbnail(string connectionId, string documentId, string documentDataId, string renditionId, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | documentId | The document id. See also Id |
System.String | documentDataId | Optional: The document data id. See also DocumentData |
System.String | renditionId | Optional: The rendition id. See also DocumentData |
System.Int32 | pageNumber | the page number |
Returns
Type | Description |
---|---|
System.IO.Stream | Thumbnail stream |
Remarks
Used for direct HTTP download. Cannot be called directly via the API because no valid XML / JSON ticket is sent back here. Only support from IE 9.0 and newer.
Examples
A simple example for download thumbnail.
GET http://YourServerName/InfoShare/Json/File/GetThumbnail?connectionId=4134c72d-939a-4f08-976c-58450254b5e7&documentId=2e916205-b211-ea11-a985-00155d290a08&pageNumber=1
Example for download thumbnail with optional parameters.
GET http://YourServerName/InfoShare/Json/File/GetThumbnail?connectionId=4134c72d-939a-4f08-976c-58450254b5e7&documentId=2e916205-b211-ea11-a985-00155d290a08&documentDataId=92916205-b211-ea11-a985-00155d290a08&renditionId=a0916205-b211-ea11-a985-00155d290a08&pageNumber=25
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Document without file {documentId} (10004) |
ServiceException | No document found for documentId {documentId} (10005) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |