Search Results for

    Show / Hide Table of Contents

    Method DownloadThumbnailBytes

    DownloadThumbnailBytes(String, String, String, String, Int32)

    Download thumbnail as byte array

    Declaration
    byte[] DownloadThumbnailBytes(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.Byte[]

    Thumbnail bytes

    Examples

    POST http://YourServerName/InfoShare/Json/File/DownloadThumbnailBytes

    A simple example download thumbnail as byte array".

    {
       "connectionId": "6750c3bd-2f8a-4beb-8f0f-25dc70340d71",
       "documentId": "9e2009e6-0cde-e911-a947-00155d290a08",
       "documentDataId": "",
       "renditionId": "",
       "pageNumber": 1
    }

    Example download thumbnail as byte array".

    {
       "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:

    {
       "DownloadThumbnailBytesResult": [37,80,68,70,45,49,46,53,13,10,37,181,181,181,181,13,10,49,32,48,32,111,
       98,106,13,10,60,60,47,84,121,112,101,47,67,97,116,97,108,111,103,47,80,97,100,68,69,41,32,47,83,116,114 ....]
    }
    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)

    ServiceException

    No thumbnail found for page number {pageNumber} in document {documentId} (10397)

    Back to top Copyright © Kendox