Method DownloadThumbnail
DownloadThumbnail(String, String, String, String, Int32)
Download thumbnail
Declaration
Stream DownloadThumbnail(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 |
Examples
POST http://YourServerName/InfoShare/Json/File/DownloadThumbnail
A simple example download thumbnail as stream".{
"connectionId": "6750c3bd-2f8a-4beb-8f0f-25dc70340d71",
"documentId": "9e2009e6-0cde-e911-a947-00155d290a08",
"documentDataId": "",
"renditionId": "",
"pageNumber": 1
}
Example download thumbnail as stream".
{
"connectionId": "6750c3bd-2f8a-4beb-8f0f-25dc70340d71",
"documentId": "9e2009e6-0cde-e911-a947-00155d290a08",
"documentDataId": "1e2889e6-0cde-e911-a947-00155d290a08",
"renditionId": "9e2300e6-0cde-e911-a947-00155d290a77",
"pageNumber": 1
}
Response:
{
data:text/html;base64,77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhRE9DVFlQRSBodG1sIFBVQkxJQyAiLS8vVzNDLy9EVEQgWEhUTUwgMS4wIFRyYW
5zaXRpb25hbC8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRtbDEvRFREL3hodG1sMS10cmFuc2l0aW9uYWwuZHRkIj4NCjxodG1sIHhtbG5zPSJodHRwOi8 ...
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) |