Hi,
I am using the bulkloader tool and I am unable to upload more than 1
mb to the database. Is this a problem with my code or with the way
bulkloader works?
This is my remote api servlet:
<servlet>
<servlet-name>RemoteApi</servlet-name>
<servlet-
class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-
class>
</servlet>
<servlet-mapping>
<servlet-name>RemoteApi</servlet-name>
<url-pattern>/remote_api</url-pattern>
</servlet-mapping>
This is my loader.py:
from google.appengine.tools import bulkloader
from google.appengine.ext import db
class Image(db.Model):
image = db.BlobProperty()
imageID = db.IntegerProperty()
class ImageLoader(bulkloader.Loader):
def __init__(self):
bulkloader.Loader.__init__(self, 'RhinestoneImage',
[('image',
lambda x:open(x,'rb').read()),
('imageID', long),
])
loaders = [ImageLoader]
Does anyone know what the problem is?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.