Skip to content
Snippets Groups Projects
Select Git revision
  • Product/75-s3ZipMetadata
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2518-docs
  • Topic/535-speedTest
  • Product/497-speedTest
  • Sprint/2022-01
  • Product/94-conventions
  • Topic/100-conventions
  • Topic/76-s3ZipDownload
  • Topic/83-connectParts
  • Topic/81-s3ZipUpload
  • v1.0.0
14 results

s3zip

  • Clone with SSH
  • Clone with HTTPS
  • Library for uploading files to S3.

    The allows to zip a folder and/or upload a whole stream in chunks to a S3 object store.

    For example:

    // uploading
    var zipUtilities = new ZipUtilities(s3MultipartStreamConfiguration);
    zipUtilities.ZipAndUploadFolder(@"c:\temp\test", "test.zip");
    // downloading
    var zipUtilities = new ZipUtilities(_s3MultipartStreamConfiguration);
    using (var s3MultipartDownloadStream = new S3MultipartDownloadStream(key, s3MultipartStreamConfiguration))
    {
    	using (var archive = new ZipArchive(s3MultipartDownloadStream, ZipArchiveMode.Read, true))
    	{
    		zipUtilities.UnzipToFolder(archive, @"c:\temp\test2\");
    	}
    }

    A zip file of the folder will be in S3 under the key test.zip.