shabdar
shabdar

Reputation: 356

Creating files on AppEngine

I'm trying to store some data in a binary file:

import os, pickle

o = some_object()
file = open('test', 'wb') #this causes the error
pickle.dump(o, file)
file.close()

I get this error: IOError: invalid mode: wb

It doesn't work (neither on test server or GAE itself), apparantly because it does't have the write permission.

How can I create files on Appengine?

Upvotes: 0

Views: 500

Answers (2)

John La Rooy
John La Rooy

Reputation: 304175

GAE is readonly, you can only store stuff in the datastore

here is a link to the docs

Upvotes: 5

slf
slf

Reputation: 22767

I think the short answer is you shouldn't. I suggest you store this info in BigTable as a Blob and serve it up that way.

Upvotes: 1

Related Questions