Ah, my bad.  Without reading the docs

"The Blobstore API allows your app to serve data objects, called
blobs, that are much larger than the size allowed for objects in the
Datastore service."

"Apps never access blob data directly; instead, blobs are created
indirectly, by a submitted web form or other HTTP POST request, and
served indirectly through the Blobstore API."

I didn't know the new blobs were something other than a larger size
limit for BlobProperty, and I didn't know direct access wasn't
implemented.

Seeing the mention of PUT, which I know is broken (application/x-www-
form-urlencoded and any other format, for small or large sized data),
I thought there might be an easy fix.  Obviously I was wrong, the
context is more general.  Without reading the source, I don't know if
Blobstore is a workaround for Datastore limitations, but would guess
that pulling 50M through a POST (or patched PUT) would run into
Datastore size issues (presumably that is why Blobstore is (currently)
what it is).

--
G


On Dec 15, 7:17 am, oli <[email protected]> wrote:
> Unfortunately it's not that simple. For a Blob Store upload you have
> to generate a temporary URL 
> likehttp://localhost:8080/_ah/upload/agN3b3hyGwsSFV9fQmxvYlVwbG9hZFNlc3Np...
>
> With a raw PUT request / S3-like API you don't even use multipart/form-
> data, just send the blob in the body of the request. What's more
> important: some random generated URL doesn't work. You send the blob
> to a specific URL the client know in advance, 
> likehttp://localhost:8080/bucket/steve_mcqueen.jpg
>
> This is not supported by the Blob Store service. And I wonder if it's
> even possible to support it in appengine or if this is another
> limitation that will not go away anytime soon.
>
> On Dec 15, 1:59 pm, G <[email protected]> wrote:
>
> > Perhaps this ancient PUT bug is part of the problem?
>
> >http://code.google.com/p/googleappengine/issues/detail?id=170
>
> > If so, try the workaround.
>
> > -        if self.method != 'POST':
> > +        if self.method not in ['POST','PUT']:
>
> > --
> > G

--

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