Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML file transfer question
Message
From
25/08/2003 08:45:08
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
 
 
To
25/08/2003 07:56:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00822973
Message ID:
00823007
Views:
18
Hi Cetin

Thank you very much. It's work. After NOCPTRANS in create cursor.

Arnold

>>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")
>
>* On other side
>m.cXML = FileToStr('xmlfile.xml') && Or get xml string by any means
>XMLToCursor(m.cXML,'myCursor',1024)
>copy memo myCursor.file to myOutput.jpg
>
Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform