Image upload using web worker

981 views
Skip to first unread message

vcsred82

unread,
Sep 20, 2012, 8:03:48 AM9/20/12
to chromiu...@chromium.org
Hi,

   How can i upload image to server using the web worker,Here i am saving the location of image in Indexed Db.Please help me

Thanks & Regards
Chandra Sekhar

Eric Bidelman

unread,
Sep 20, 2012, 2:52:03 PM9/20/12
to vcsred82, Chromium HTML5
This is a perfect question to ask on Stack Overflow :)

worker.postMessage() supports structured cloning, so you should be able to
send the File/FileList to the worker and use xhr.send() to upload it:


If you're using IDB, you can read it in the main app and send it to the worker,
or use IDB directly in the worker.


--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-html5/-/Vr2lhVH7LTQJ.
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.

Reply all
Reply to author
Forward
0 new messages