开发者

file I/O with google app engine

开发者 https://www.devze.com 2023-02-21 20:43 出处:网络
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 e开发者_StackOverflow中文版ngin

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 e开发者_StackOverflow中文版ngine once it is uploaded ? (I dont want to store the file with blobstore. Just want to read, process and throw it away) Thanks


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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号