Search Results for

    Show / Hide Table of Contents

    Method DownloadTempFile

    DownloadTempFile(String, String)

    Download temporary file as stream

    Declaration
    Stream DownloadTempFile(string connectionId, string fileId)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String fileId

    The file id

    Returns
    Type Description
    System.IO.Stream

    Temporary file stream

    Examples

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

    Example for download temporary file as stream.

    {
       "connectionId": "7f216182-21c8-497e-a036-7d2bcb6a1b37",
       "fileId": "335da2cf-3d0f-4614-8091-3dc0c7766492"
    }

    Response:

    data:application/octet-stream;base64,JVBERi0xLjUNCiW/96L+DQo2IDAgb2JqDTw8L0xpbmVhcml6ZWQgMS9MIDE1NzE0Mi9IIFs3Nzk5IDE1OF0vTyA
    4L0UgNzc5OS9OIDEvVCAxNTY5NzY+Pg0KZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgICAgICANCnhyZWYNCjYgMTMNCjAwMDAwMDAwMTcgMDA
    wMDAgbg0KMDAwMDAwMDU4MSAwMDAwMCBuDQowMDAwMDAwNjI3IDAwMDAwIG4NCjAwMDAwMDA4MzMgMDAwMDAgbg0KMDAwMDAwMTA2MyAwMDAwMCBuDQow ....
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    File {0} not available (10143)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox