But how do you open up the content if it is > 1mb ?

On Apr 26, 12:35 pm, Kaan Soral <[email protected]> wrote:
> Thanks a lot for the code
>
> For some reason on development it kept giving errors for 1024*1024 so
> I made it 800*1024
>
> On Apr 18, 12:50 am, 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.

Reply via email to