Extract files from zip folder and store these files in blobstore
        Posted  
        
            by 
                Eng_Engineer
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Eng_Engineer
        
        
        
        Published on 2012-03-21T16:48:17Z
        Indexed on 
            2012/03/21
            17:29 UTC
        
        
        Read the original article
        Hit count: 256
        
i want to upload zip folder from file input in form the i want to extract the contents of this uploaded zip folder,and store the contents (files)of this zip in the blobstore in order to download them after putting these files in one folder,but the problem is that i can't deal with the zip folder directly(to read it), i tried as this:
form = cgi.FieldStorage() 
file_upload = form['file']
zip1=file_upload.filename
zipstream=StringIO.StringIO(zip1.read())
But the problem still that i can't read the zip as previous,also i tried to read zip folder directly like this:
z1=zipfile.ZipFile(zip1,"r")
But there was an error in this way.Please can any one help me.Thanks in advance.
© Stack Overflow or respective owner