Hello Adrian, 

Have you find a way to disable chunked transfer for blobstore ? 

I have the same issue : I would like to know the total size of the file I 
am downloading so I could show a nice progress bar download indicator.

Cheers,
Erwann 

Le mercredi 7 avril 2010 04:28:56 UTC+2, Adrian Holovaty a écrit :
>
> Hi there,
>
> When Google App Engine serves media files from the Blobstore, it sends
> a "Transfer-Encoding: chunked" header and doesn't include a "Content-
> Length" header. This means a client downloading the file cannot do
> useful things such as displaying a progress bar, because the client
> doesn't know how large the file is until the whole thing is
> downloaded.
>
> My gut reaction upon seeing this was that Google was doing this for
> performance reasons, so that it didn't ever have to calculate the size
> of each blob... But, Google already *knows* the size -- it's
> accessible via Blobinfo.size for any given blob.
>
> In my particular case, I'd love App Engine to set Content-Length so I
> can display a download progress bar. I tried manually setting the
> Content-Length header (along with the magic X-AppEngine-BlobKey
> header) when serving a blob, but Content-Length was silently removed
> before it reached the client. So evidently App Engine is intentionally
> disallowing this.
>
> Is there any way to disable chunked transfer for blobs? Looks like
> somebody asked this in September 2008 but nobody responded:
>
> http://groups.google.com/group/google-appengine/browse_thread/thread/14c976299c032565/
>
> If there isn't a way to accomplish this, I'd love to hear Google's
> reasoning, if only because it'd be interesting to hear why App Engine
> always uses Transfer-Encoding.
>
> Thanks,
> Adrian
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to