locked
Generate ZIP file from blob container RRS feed

  • Question

  • User1644485212 posted

    Hello,

    I need to generate ZIP file from blob container or multiple files. Is there any built in service which creates ZIP automatically, and gives us ZIP file path in return? 

    As if I try to ZIP it through some code then wither I need to get stream in memory, which is not feasible as there is huge data. Another way is to open write stream, which writes and keeps stream on blob itself , but for this we need active internet connection. 

    Is there any other way by which I can fulfill this requirement?

    Monday, April 23, 2018 6:22 AM

All replies

  • User-284744251 posted
    You will have to get stream in memory to create zip file. Following link has few suggestions

    https://stackoverflow.com/questions/18852389/generate-a-zip-file-from-azure-blob-storage-files
    Monday, April 23, 2018 6:29 PM
  • User283571144 posted

    Hi komaldparekh,

    I need to generate ZIP file from blob container or multiple files. Is there any built in service which creates ZIP automatically, and gives us ZIP file path in return? 

    As far as I know, there is no build-in service to compress data within Azure storage.  

    In my opinion, the Azure Storage is as cheap as it is is because there is very little intelligence built into the solution.

    A blob in Azure storage is simply a collection of bits and bytes between two boundaries.

    It is designed to have the absolute minimum of processor overheard.

    It is data dumped to disk with a link that encapsulates it.

    Compressing data is a comparatively expensive process, and as such it would greatly increase the complexity and cost of storage.  

    If you want to generate zip file on the azure, I suggest you could consider using azure function.

    Azure Functions is a serverless compute service that enables you to run code on-demand without having to explicitly provision or manage infrastructure.

    You could use azure function to help you run the generate zip file codes automatically.

    Best Regards,

    Brando

    Tuesday, April 24, 2018 5:01 AM