That sounds great. Are you planning on exposing the BlobBuilder class
to javascript? An alternate way I was considering was allowing an
Array to be passed to the HttpRequest::send method (indstead of just
Blob or String) that could contain both Strings and Blobs, and then
the new Blob could be built with the BlobBuilder.
On Nov 18, 3:31 pm, Michael Nordman <
micha...@google.com> wrote:
> We have a Gears object that is not yet in the 'official' build that does
> allow script to compose a multi-part/formdata payload. Not sure when this
> will make its way into a real build.
> interfaqce BlobBuilder {
> void append(string|blob); // string data will be utf8 encoded in the
> resulting blob
> Blob getAsBlob();
>
> };
>
> With this interface you still have to manually compose the multipart
> boundaries, but in the end, you can create a valid multipart payload
> including binary file parts.
>