Passing Base64Binary dataype to Webservice

How do we pass base64binary data type to webservice using the XMlhttp request .