Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML file transfer question
Message
From
25/08/2003 07:56:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/08/2003 01:24:07
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00822973
Message ID:
00823000
Views:
16
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform