我正在使用Ivanti服务管理器,当前正在尝试将附件传输到第三方系统。为此,我阅读了Ivanti的附件。结果是以下对象。
{"status":"Success","exceptionReason":null,"attachmentData":"iVBORw0KGgoAAAANSUhEUgAAAjgAAACeCAIAAACwzed7AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH4wIBBxYPFxBJSgAAAAd0RVh0QXV0aG9yAKmuzEgAAAAMdEVYdERlc2NyaXB0aW9uABMJISMAAAAKdEVYdENvcHlyaWdodACsD8w6AAAADnRFWHRDcmVhdGlvbiB0aW1lADX3DwkAAAAJdEVYdFNvZnR3YXJlAF1w/zoAAAALdEVYdERpc2NsYWltZXIAt8C0jwAAAAh0RVh0V2FybmluZwDAG+aHAAAAB3RFWHRTb3VyY2UA9f+D6wAAAAh0RVh0Q29tbWVudAD2zJaAAAABnRFWHUaXRsZQCo7tInAAAgAElEQVR4nO2deVwUV7b4D5sLRFwAN0QBFxYx4JxEBCFeSrOiKhpY4xiGDQyRs0YBQafbeKQRH8Y0Ilv0EwwBslgNIR26WBGxRcXpJFHFMcgq0IbUIPAiBgwiYKP47elNXV+wqc74cPn6pbdzl1qqeOueeumXlGRcGBEEQBGGpWJtbAIIgCIJQBSkqgiAIwqIhRUUQBEFYNKSoCIIgCIuGFBVBEARh0dg+efLE3DJogbWVFVfc4rezzCaKSia8t8jcIhAEQXQRrMHK3CJoQ2dSqgRBEIQh6GSuv85lxEEQRD608kUFUEQBNHdIEVFEARBWDSkqAiCIJ5DHB4j25Q5yd23bKvU3LIQAABWHnGzOleIgpXVr+EfFPVHEATR5ekuFlW67Nj4d1GP3PLIkDZVin7E4fH4KPcJHdfZfnF4TFlW6WyTZmmFFJPUGb8E8yg9qxVo09Z88K9+qlLNxmvFdP3jHH0rMkKn7G2surhPFiTtrcm5bDZaW50H2PnB4t9fYayyaQBGjyYsxkm3siIam9rkvoJZ2U1aHsWOIx6PRtMMYSP6a18WRXz4SC+PkOZ0aNaZtH8SdyyaHKhDA0NDwStRl6RlSumr1wxfe1bmcomCFUjmjJxbkPzzsXHDSmoeHB7Lk7jxy7jDH3jE0J4WXld7gWBoJTU7Pn7lz7ViZ2HZs7lBy9xKsNMSntOw2diNuswF9ryJWAXfcpl5YrpeJm4GcQbw7W61ppUomE/LADOtK8RUh4AAAAASUVORK5CYII="}
第三方系统期望对象提供一个base64字符串,例如attachmentData。但是,只要我要访问attachmentData的值并将其保存在变量中,它就会自动成为字节码。但是我需要的是base64代码,因为它已经在响应对象中给出了。我如何获得未自动转换的字符串?非常感谢您的帮助。
ps:Ivanti中的问题是我无法使用所有javascript方法,因为系统不知道它们。