Closed Harish-Ramamurthy closed 7 years ago
Hi Harish-Ramamurthy,
I think the problem comes from the method that converts <base64>
tag to JSON does not exist. I will fix that as soon as possible.
Thanks for your feedback !
I just push a patch adding <base64>
tag management. It converts it to a string value. Tell me if it's good for you :)
Cheers
Sorry for the late reply as I was in my Christmas vacation. I tested it, the base64 gets converted to a string value and it works fine for me. Thank you for your help.
I have made the following xmlrpc call.
xmlrpc.callMethod('exportConfig', []).then(function(response) { console.log(response); console.log("Response Type: " + typeof(response)); console.log("Response Length: " + Object.keys(response).length); var reader = new FileReader(); var blob = new Blob([response], {type: 'application/zip'}); reader.onLoad = function () { console.log(this.result); }; reader.readAsDataURL(blob); });
The output is said to return the configuration as a data BLOB: base64.
The xmlrpc call is successful and I obtain the response in xml. I have attached the screenshot which I obtained from the network tab.
But I don't receive the response in json. I don't obtain the dataURL in the console. I have attached the screenshot for the same.
Kindly let me know if there is a workaround for this or have i made any mistake in my xmlrpc call. Thank you.