public string UploadFile( string description, Stream file) { var treeHashString = HashHelper.SHA256HashString(file); var response = Service.UploadArchive(new UploadArchiveRequest() { VaultName = this.VaultName, ArchiveDescription = description, Body = file, Checksum = treeHashString }); return(response.ArchiveId); }
public void GlacierUploadArchive() { #region upload-archive-1481668510494 var response = client.UploadArchive(new UploadArchiveRequest { AccountId = "-", ArchiveDescription = "", Body = new MemoryStream(example - data - to - upload), Checksum = "", VaultName = "my-vault" }); string archiveId = response.ArchiveId; string checksum = response.Checksum; string location = response.Location; #endregion }