>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.