Retrieve File Attachment using Jscript
Summary
GetFileData call using JscriptContent
Hello everyone -
I am trying to retrieve the file data from Jscript. I am using XMLHttpRequest to post the request XML of GetFileData and get back the binary data of the file attachment. I have provided the code snippet below.
I can get the binary data response from the XMLHttpRequest though my call to SOAP end point and submission of xml in the send method goes through fine. I am wondering what I am doing wrong? Essentially, objXMLHttpRequest.responseText does not bring me the file data that I would expect in this call.
Thanks,
Tagged:
1