Hi,
Thank you for answer.
It worked great when passed binary string to worker and than
reconstruct blob(array buffer don't work as I understand because of
mentioned bugs).
I have one more question about workers:
I want to upload some big file(let say 50 MB) on server. So I sliced
it on parts (each 10 MB) and send separately. This scenario is working
well.
Does it make sense to use web workers here: create new worker for each
request that will upload part of the file.
Any way to speed up upload process (ideas/suggestion)? What is the
best number of parts on which I should slice file in my case (for each
part browser will send new request to server, so is there any
"desired" number of requests)?
Thank you in advance for any help.
Best regards,
Anton Podviaznikov
On Jul 22, 11:08 pm, Eric Bidelman <
ericbidel...@chromium.org> wrote:
> There is good info on the supported formats for send():
http://www.html5rocks.com/en/tutorials/file/xhr2/
>
> The type of data you can send to/from a work is limited.
> Passing a Blob isn't really possible b/c it is not serializable type.
> My suggestion would be to read the file/blob as an arrayBuffer
> or binary string. Once you have bytes in the worker, you could
> reconstructed a typed array or blob from the serialized arrayBuffer.
>
> Star this bug:
http://code.google.com/p/chromium/issues/detail?id=73313
>
> Eric
>
> On Fri, Jul 22, 2011 at 7:08 AM, Anton Podviaznikov
> <
podviazni...@gmail.com>wrote:
> > To post to this group, send email to
chromium-ht...@chromium.org.
> > To unsubscribe from this group, send email to
> >
chromium-html5+unsubscr...@chromium.org.
> Eric Bidelman | Senior Developer Programs Engineer |
e.bidel...@google.com