Search Results for

    Show / Hide Table of Contents

    Method GetTempFileNamed

    GetTempFileNamed(String, String, String, String)

    Download temporary file

    Declaration
    Stream GetTempFileNamed(string connectionId, string fileId, string contentType, string name)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String fileId

    The file id

    System.String contentType

    The content type to return. Default value: application/octet-stream

    System.String name

    The name of file.

    Returns
    Type Description
    System.IO.Stream

    Temporary file named 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

    Example for download temporary file named as stream.
    GET http://YourServerName/InfoShare/Json/File/GetTempFileNamed?connectionId=4134c72d-939a-4f08-976c-58450254b5e7&fileId=4134c72d-939a-4f08-976c-58450254b5e7&contentType=application/octet-stream&name=test

    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