This question is a follow-up on this thread https://forums.smartclient.com/forum/technical-q-a/31034.
It might be beneficial if I could use RPCManager.sendRequest() with the "downloadResult" option set to true to download a binary file using a non-SmartClient-server (in my case RubyOnRails). Right now the code below gives a console error (Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed).
I'm using the GET method here, but ideally this would also work with POST (that has to do with the way my server is set up).
Right now, I'm simply using window.open() to do a GET request. This works, but it's harder to create the query string parameters than it is using the RPCManager.
It might be beneficial if I could use RPCManager.sendRequest() with the "downloadResult" option set to true to download a binary file using a non-SmartClient-server (in my case RubyOnRails). Right now the code below gives a console error (Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed).
Code:
isc.RPCManager.sendRequest({ actionURL: 'file.pdf', downloadResult: true, httpMethod: 'GET', useSimpleHttp: true });
Right now, I'm simply using window.open() to do a GET request. This works, but it's harder to create the query string parameters than it is using the RPCManager.
Comment