split your data into parts for datastore entity 1M limitation.
and combine parts to one file before respond to browser.

    @PROPERTY
    def Binary():
        def fget(self):
            if self.size > MAX_BLOD_SIZE and self.binarylist:
                bin = StringIO()
                for id in self.binarylist:
                    part = PhotoPart.get_by_id(id)
                    bin.write(part.binary)
                return bin.getvalue()
            else:
                return self.binary
        def fset(self, bin):
            length = len(bin)
            if length > MAX_BLOD_SIZE:
                seq = 0
                if not self.is_saved():
                    self.put()
                for i in range(0, length/MAX_BLOD_SIZE+1):
                    part = PhotoPart()
                    part.binary = bin[i*MAX_BLOD_SIZE:(i
+1)*MAX_BLOD_SIZE]
                    part.photo = self
                    part.seq = seq
                    part.put()
                    self.binarylist.append(part.id)
                    seq += 1
            else:
                self.binary = bin
        return locals()

your can see full source from my project GAEPhotos
http://code.google.com/p/gaephotos/source/browse/trunk/models.py

On Dec 13, 11:17 am, Stephen Johnson <[email protected]> wrote:
> Yes, the datastore has a 1MB limit on entities. You can use the blobstore
> for larger objects.  http://code.google.com/appengine/docs/java/blobstore/
>
> On Sun, Dec 12, 2010 at 8:01 PM, dadada <[email protected]> wrote:
> > hi all,
>
> > is there a 1mb limitation for google app engine?
>
> > I am want to upload photos which are all more than 1mb. what can be
> > the possible solution? the clients will be on browser and mobile.
>
> > can i compress the data on browser?
>
> > Thank you!
> > bryan
>
> > --
> > 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]<google-appengine%[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.

Reply via email to