>Hi Everybody
>
>I want to transfter several JPG via XML by following logic:
>
>load the jpg file to a binary string :
>m_jpg = createbinary(filetostr(jpg_file.jpg))
>
>append to cursor by :
>create cursor m_xml (file m)
>insert into cursor m_xml (file) value (m_jpg)
>....
>
>my question is how to set the parameter of cursortoxml() to keep binary format in memo
>then restoed at the other end by xmltocursor() ?
>
>Thanks for any comment in advance
>
>Arnold
create cursor m_xml (file m nocptrans)
insert into m_xml (file) values (FileToStr('jpg_file.jpg'))
CursorToXML('m_xml','cXML',1,0,0,"1")
m.cXML = FileToStr('xmlfile.xml')
XMLToCursor(m.cXML,'myCursor',1024)
copy memo myCursor.file to myOutput.jpg
Cetin