Does anyone have any idea how google drive unzips file in real time

Asked

Viewed 93 times

3

I wanted to understand and know if there is any library or strategy to do the same as Google Drive does with the compressed files, to allow you to browse the files inside the files without having to unpack them.

Does anyone have any idea how to do that?

  • Everything is done on a temporary basis. You actually unzip into temporary and scroll through the files by returning the file tree, if any file is requested, you recover by temporary.

  • humm, do you have any idea how to do this without having to write on disk? something in memory?

1 answer

4

You can use some library that reads ZIPS files. PHP itself has these functions as:

  • However to use these functions it is necessary to save the file to disk. I would like to do in memory. Imagine receiving the Base64 compressed file and extracting the data from it (files inside the compressed file) in memory...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.