|
|
|||||||
|
The base64_decode method converts a BSTR in base64 format to it's
original format and returns the output data as a BSTR.
The output BSTR may
contain binary characters. To decode directly to a file, see the base64_decode_to_file
method.
|
|||||||
|
Parameters: |
|||||||
|
|||||||
|
Return Value: |
|||||||
| Original form of BSTR, which may contain binary characters. | |||||||
|
Example: |
|||||||
function GetMsgFile( MessageHandle, MessageFileToGet )
{
var Tl = xmlTlNew();
xmlTlAddTag(Tl,"GET_FILE_FUNCTION",null);
xmlTlAddTag(Tl,"REGISTERED_NAME","User1");
xmlTlAddTag(Tl,"REGISTERED_PASSWORD","");
xmlTlAddTag(Tl,"MESSAGE_HANDLE",MessageHandle);
xmlTlAddTag(Tl,"CURRENT_FILESPEC",MessageFileToGet);
var responseXML = xmlTlSend(Tl,
"\\\\FAX\\NETSAT",
"NETSAT",
2,
"http://netsat/casxml.asp");
if (xmlGetTag(responseXML,"STATUS_NUM") == 0)
{
return(FBX.base64_decode(xmlGetTag(responseXML,"CONTENT_DATA")));
}
return("");
}
|
|||||||
| See Also: | |||||||
| xmlTlNew, xmlTlAddTag, xmlTlSend, base64_decode_to_file, base64_encode | |||||||
|
|