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.