This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.AWS.S3.
Summary
Get the byte array of the content from Amazon S3
- Assembly
- Cake
.AWS .S3 .dll - Namespace
- Cake
.AWS .S3 - Containing Type
- IS3Manager
Syntax
Task<byte[]> GetBytes(string key, string version, DownloadSettings settings, CancellationToken cancellationToken = null)
Parameters
| Name | Type | Description |
|---|---|---|
| key | string | The S3 object key. |
| version | string | The S3 object version. |
| settings | DownloadSettings | The download settings. |
| cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Return Value
| Type | Description |
|---|---|
| Task |
A byte array. |
