Cemre Mengü
Cemre Mengü

Reputation: 18754

file I/O with google app engine

I want to provide a field in my html file so that people can upload their XML files to be imported to the datastore. How can I read and process this file inside the app engine once it is uploaded ? (I dont want to store the file with blobstore. Just want to read, process and throw it away) Thanks

Upvotes: 1

Views: 286

Answers (1)

Wooble
Wooble

Reputation: 89867

Use a StringIO when you need a file-like object for use with libraries that act on files. (Although I believe most XML parsers will happily accept a string instead of requiring a file-like object.)

Upvotes: 1

Related Questions