Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Large Bin.Base64 elements and nodetypedvalue
Message
From
15/04/2005 14:34:05
 
 
To
15/04/2005 10:33:31
Jon Nelson
Trader Systems Limited
Reading, United Kingdom
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01004896
Message ID:
01005273
Views:
17
Hi,

>>
A solution of sorts...

With the node selected (oNode=oXML.SelectSingleNode("/MyXML/PDF"))

I am able to use the oNode.text property which has the the base64 encoded data. I then used a modified version of the existing base64 encoding/decoding code elsewhere on this site to write the data out to a stream. This works fine - even for large files. It is odd that I cannot get the nodetypedvalue to work directly - as this should be quicker.
>>

Ah well - if it works...I thought something like
Local s
laArray = oXml.SelectSingleNode("/MyXML/PDF").NodeTypedValue
For i = 0 TO ALEN(laArray-1)
 s = s + CHR(laArrray(1))
Endfor
No idea whether it would have worked (or whether the array is 0 or 1 based) though. Also I doubt if it would be any quicker...

Regards,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform