Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorToXML with memo fields
Message
De
28/09/2011 04:26:22
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01524503
Message ID:
01525015
Vues:
56
>Hello,
>
>I have a cursor with a memo field that stores a JPG file.
>When I do
>
>CURSORTOXML(ALIAS(),"test.xml",1,8+512)
>
>Then the next line causes an error:
>
>XMLTOCURSOR("test.xml","testme",512)
>
>Message: "An invalid character was found in text content"
>
>So far no luch playing around with the Flags parameter. Any ideas?

The old trick was to have the memos (and any character fields containing unprintables) set as NOCPTRANS. If you're using a cursoradapter, you can set a schema with that designation. As Sergey said, the field needs to be binary - doesn't matter which type of binary.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform