I'm heaving a really hard time finding documentation on a very basic
question about AppEngine:
Does the BlobStore support Chunked Transfer Encoding for uploads?
I'm using an HttpURLConnection object in Java with setChunkedStreamingMode
to upload a file in a multipart/form-data type request using the following
code to set up the connection:
HttpURLConnection cxn = (HttpURLConnection) new URL(uploadUrl).
openConnection();
cxn.setRequestMethod("POST");
cxn.setChunkedStreamingMode(9999);
cxn.setRequestProperty("Content-Type", "multipart/form-data; boundary=-");
cxn.setDoOutput(true);
cxn.connect();
The dev-server answers my request with Status 411: Length required. Does
this mean that chunked transfer mode is not supported, or am I initializing
the connection incorrectly? Does the production server act differently
here? Is this behavior a consequence of specifying a max upload size when
generating the upload url?
If I simply comment out the line cxn.setChunkedStreamingMode(9999);,
everything works perfectly, but I'd rather not do this, so I don't have to
buffer hundreds of MB in memory before sending the request...
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/9E9_NHwkp4UJ.
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.