upload blob from javascript client to server?

Hi,

I’ve written a javascript widget for audio recording and playback and have packaged this as a Vaadin component, which works. The only problem is getting the recorded audio from the client to the server. The javascript client encodes the audio in wav format as a DataView. I would like to transfer this blob to a file on the server, but can’t seem to figure out the best way to do it. (I could save the blob as a file on the client, and then use the Upload component; or encode the blob as one or more JSON strings, and transfer those with the usual RPC mechanisms; but it seems that there should be a better way.)

TIA,

Matthew Fleming