OpenReadStreamAsync(IFileDescriptor)

Creates a read stream for the file.

public abstract Task<Stream> OpenReadStreamAsync(IFileDescriptor fileDescriptor)
Returns:
Task<Stream>

Parameters

fileDescriptor IFileDescriptor

The file descriptor to return a stream for.

OpenReadStreamAsync(string)

Creates a read stream for a file with the specified file id. This is a shorthand for calling GetFileByIdAsync(string) and OpenReadStreamAsync(IFileDescriptor) sequentially.

public abstract Task<Stream> OpenReadStreamAsync(string fileId)
Returns:
Task<Stream>

Parameters

fileId string

The id of the file to return a stream for.

In this article