public ActionResult Create(IFormFile file) { var bytes = file.OpenReadStream().AsEnumerable(); var uploadResult = _archiveClient.Upload(SevenZipArchive.ZipFormat, bytes); return(Ok(uploadResult.Select(x => x.Key))); }
public string Create(IEnumerable <byte> bytes) { return(_archiveClient.Upload(SevenZipArchive.ZipFormat, bytes).First().Key); }