Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Large Bin.Base64 elements and nodetypedvalue
Message
De
15/04/2005 14:34:05
 
 
À
15/04/2005 10:33:31
Jon Nelson
Trader Systems Limited
Reading, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01004896
Message ID:
01005273
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform