Come estrarre un zip in memoria?Estrarre un file zip in memoria?
Il mio tentativo (ritorno None
su .getvalue()
):
from zipfile import ZipFile
from StringIO import StringIO
def extract_zip(input_zip):
return StringIO(ZipFile(input_zip).extractall())
Vedi anche: https://stackoverflow.com/questions/5710867 – J0ANMM