Search Results for

    Show / Hide Table of Contents

    Method UploadStreamChunks

    UploadStreamChunks(String, String, String, Stream)

    Upload a file directly to the server via streaming with chunks.

    Declaration
    string UploadStreamChunks(string connectionId, string fileId, string currentByte, Stream stream)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String fileId

    The file id. Optional.

    System.String currentByte

    The current byte. Optional.

    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/UploadStreamChunks?connectionId=70200b04-871d-48a1-a444-63d6507dc3dd&fileId=197EFC62-B7CB-4D3A-93BE-D30BE172D07A&currentByte=0

    Example for upload stream direct

    Stream as Body Postman example: Select Body => Binary => select file

    Response:

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