Hello Everyone,
I am trying to make use of the base64string data that was returned from a web service (RenderResponse). The return response definition from it's wsdl is below:
<s:element name="RenderResponse">
<s:complexType>
<s:sequence>
<s:element name="Result" type="s:base64Binary" maxOccurs="1" minOccurs="0"/>
<s:element name="Extension" type="s:string" maxOccurs="1" minOccurs="0"/>
<s:element name="MimeType" type="s:string" maxOccurs="1" minOccurs="0"/>
<s:element name="Encoding" type="s:string" maxOccurs="1" minOccurs="0"/>
<s:element name="Warnings" type="tns:ArrayOfWarning" maxOccurs="1" minOccurs="0"/>
<s:element name="StreamIds" type="tns:ArrayOfString" maxOccurs="1" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
I am interested in getting the "Result" base64Binary value converted into a character string that I can display.
Currently I have the value returned from the web service call saved in a MEMPTR variable.
Does anyone know I convert the base64Binary data to a character string?
Thank you,
Terry
Use code similar to the follows:
COPY-LOB FROM YourMemptrVariable to SomeLongcharVariable.
SomeOtherMemptrVariable = BASE64-DECODE(SomeLongcharVariable).
SomeCharacterVariable = GET-STRING(SomeOtherMemptrVariable,1).