Search Results for

    Show / Hide Table of Contents

    Method UploadStreamDirect

    UploadStreamDirect(String, Stream)

    Upload a file directly to the server via streaming.

    Declaration
    string UploadStreamDirect(string connectionId, Stream stream)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.IO.Stream stream

    The stream which holds the reference to the file.

    Returns
    Type Description
    System.String

    The Id of the created file.

    Remarks

    The Content-Type header must be set to text/plain. The connection is passed in the URL, not in the body of the request.

    Examples

    POST http://YourServerName/InfoShare/Json/BlobStream/UploadStreamDirect?connectionId=70200b04-871d-48a1-a444-63d6507dc3dd

    Example for upload stream direct Response:

    {
        "UploadStreamDirectResult": "9c5b60a2-3c07-4b21-bffc-73448a4c1843"
    }
    Back to top Copyright © Kendox