Apologies for the slow reply to this. There is no direct support for assets in the JS SDK yet. The request method of the SDK sets the request header to "Content-Type" "application/json". So to upload the binary data you will need to use XMLHTTPRequest to send a request with content type set to application/octet-stream and use something like sendAsBinary() to send the data. Hope this helps.
Provide your email address if you wish to be contacted offline about your comment.We will not display your email address as part of your comment.
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.