Method DownloadThumbnails
DownloadThumbnails(String, String, String, String, Int32, Int32)
Download thumbnails
Declaration
List<Stream> DownloadThumbnails(string connectionId, string documentId, string documentDataId, string renditionId, int pageNumberFrom, int pageNumberTo)
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 | pageNumberFrom | Starting page number |
System.Int32 | pageNumberTo | Ending page number |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.IO.Stream> | List of thumbnails |
Examples
POST http://YourServerName/InfoShare/Json/File/DownloadThumbnails
A simple example for download thumbnails.{
"connectionId": "6750c3bd-2f8a-4beb-8f0f-25dc70340d71",
"documentId": "9e2009e6-0cde-e911-a947-00155d290a08",
"documentDataId": "",
"renditionId": ""
"pageNumberFrom": 1,
"pageNumberTo": 0
}
Example for get count of available thumbnails with optional parameter.
{
"connectionId": "6750c3bd-2f8a-4beb-8f0f-25dc70340d71",
"documentId": "9e2009e6-0cde-e911-a947-00155d290a08",
"documentDataId": "1e2889e6-0cde-e911-a947-00155d290a08",
"renditionId": "9e2300e6-0cde-e911-a947-00155d290a77",
"pageNumberFrom": 1,
"pageNumberTo": 0
}
Response:
{
"DownloadThumbnailsResult": []
}
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 | Could not retrieve version {versionId} for document {documentId} (10130) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |