base64 encoding in XML (in eVB)
I'm trying to base64 encode a string, and XML has a way of doing this. I
get this to work (in VB), by putting the string into a byte array (bArray)
then:
Dim vTemp as Variant
vTemp = bArray
'oTopElement is created by the createElement function of a
"Microsoft.XMLDOM" object
oTopElement.dataType = "bin.base64"
oTopElement.nodeTypedValue = ReadBinData
'.nodeTypedValue wants a variant and it works in VB, but not in eVB, this
previous
'line gives me "Type mismatch" or -2147352571 error in eVB
Any ideas on this? Is it possible? Has anyone done this in eVB? Any
other ideas for base64 encoding in eVB not using XML (besides a C++ Com
object that calls the API in tnefutil.dll)? Thanks.