Method LoadBytesAsync
LoadBytesAsync(string)
Upload a player-scoped file to the Cloud Save service, overwriting if the file already exists. File name can only contain alphanumeric characters, dashes, and underscores and be up to a length of 255 characters. Throws a CloudSaveException with a reason code and explanation of what happened.
Declaration
[Obsolete("This method will be removed in an upcoming release. Use Task<byte[]> CloudSaveService.Instance.Files.Player.LoadBytesAsync(string key) instead.", false)]
Task<byte[]> LoadBytesAsync(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the saved file to be loaded. |
Returns
Type | Description |
---|---|
Task<byte[]> | A byte array containing the downloaded file data |
Exceptions
Type | Condition |
---|---|
CloudSaveException | Thrown if request is unsuccessful. |
CloudSaveValidationException | Thrown if the service returned validation error. |
CloudSaveRateLimitedException | Thrown if the service returned rate limited error. |