Dynamic Mail Streaming from Amazon S3

I am looking for a way to dynamically download ZIP files from Amazon S3.

The application is hosted on EC2, and the files are stored on S3.

It is necessary to provide users with the ability to choose from a group of files that will then be uploaded and uploaded to them.

You have heard of several Actionscript libraries (aszip and fzip) that might be possible, or could do so in Ruby, or possibly in PHP.

Files do not need to be compressed, zip is simply used to combine files into a single download ....

+7
actionscript ruby amazon-s3 amazon-ec2 zip
source share
3 answers

I use the Nginx Zip Module to stream local files, but it is possible to transfer data from remote locations. Otherwise, you can use it with S3 VFS storage as a local file system. It supports search - renewable and accelerated downloads

+3
source share

If you can use Mono, DotNetZip will do this.

Response.Clear(); Response.BufferOutput= false; // necessary for chunked output String ReadmeText= "This content goes into an entry in the " + "zip file. Timestamp, MD5, whatever." ; string archiveName= String.Format("archive-{0}.zip", DateTime.Now.ToString("yyyy-MMM-dd-HHmmss")); Response.ContentType = "application/zip"; Response.AddHeader("content-disposition", "filename=" + archiveName); using (ZipFile zip = new ZipFile()) { zip.AddEntry("Readme.txt", "", ReadmeText, Encoding.Default); zip.AddFiles(filesToInclude, "files"); zip.Save(Response.OutputStream); } HttpContext.Current.ApplicationInstance.CompleteRequest(); 

DotNetZip is open source, free to use.

0
source share

Java supports streaming zip files. look at the java.utils.zip package. I used this to implement a pipeline consisting of FTP, UNZIP, XSLT, CSV blocks. It works like a charm.

Martin

0
source share

All Articles