Good tip. There are very few APIs where the 1MB limit does not apply. We're working on ways to, at the very least, hide this from users.
Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine On Sun, Apr 17, 2011 at 2:50 PM, Mars <[email protected]> wrote: > Thought someone might be interested in knowing this. When using the > new File API to write blob, the normal 1MB per blobstore data op limit > applies. In other word, if you ever need to write blobs larger than > 1MB, make sure you do it in batches. Here's a simple example on how to > do that > > > with files.open(blob, 'a') as f: > write_len = 1024*1024 > for i in range(0, len(content), write_len): > f.write(content[i:i+write_len]) > > > where 'content' is the large binary stream to be written > > -- > 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. > > -- 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.
