Diez B. Roggisch
deets at nospam.web.de
Fri Jul 24 13:32:31 EDT 2009
> this is a non standard way to store multi part post data on disk
> def application(environ, response):
> with open('/usr/httpd/var/wsgiTemp','w') as f:
> while True:
> chunk = environ['wsgi.input'].read(8192).decode('latin1')
> if not chunk: break
> response('200 OK',)
> return ['complete']
> my question is how do i handle the file, so i can shuffle it into a db
> using small chunks of memorie ?
I don't think that's possible with the current DB-API. There is no
stream-based BLOB-interface (as e.g. JDBC offers).
So the answer certainly depends on your used RDBMS. For oracle, you
would be lucky:
Other adapters I don't know about.
More information about the Python-list