예제 #1
0
        public ActionResult Create(IFormFile file)
        {
            var bytes        = file.OpenReadStream().AsEnumerable();
            var uploadResult = _archiveClient.Upload(SevenZipArchive.ZipFormat, bytes);

            return(Ok(uploadResult.Select(x => x.Key)));
        }
예제 #2
0
 public string Create(IEnumerable <byte> bytes)
 {
     return(_archiveClient.Upload(SevenZipArchive.ZipFormat, bytes).First().Key);
 }