Logo Search packages:      
Sourcecode: babiloo version File versions  Download package

def babiloo-2.0.11::core::net::xmlrpc::OnlineService::BaseToFile (   self,
  base_data,
  path 
)

This will decode the base64 data and save it as a file with the given path

Definition at line 311 of file xmlrpc.py.

00311                                          :
        """This will decode the base64 data and save it as a file with the given path
        """
        compressedstream = base64.decodestring(base_data)
        gzipper = gzip.GzipFile(fileobj=StringIO.StringIO(compressedstream))
        s=gzipper.read()
        gzipper.close()
        subtitle_file = file(path,'wb')
        subtitle_file.write(s)
        subtitle_file.close()
        subtitle_file.close()


Generated by  Doxygen 1.6.0   Back to index