Reputation: 3360
I am using google app engine (python2.7), I save the user images in the cloud storage .
I want to give the user option to download her/his images in zip file.
is there any code that I could use, to select several images from cloud storage , compress them and download them as zip file.
thank you
Upvotes: 2
Views: 1155
Reputation: 11706
Have a look at this repo, which contains the sample code to create a zip archive of GCS images and other files and to download the zip file.
To run the sample code in the SDK use: http://localhost:8080/blob_upload
This code uploads files to GCS, which will be added to the archive for download.
blobarchive() in blob_files.py creates the zip archive.
Upvotes: 1