Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML file transfer question
Message
De
25/08/2003 07:56:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/08/2003 01:24:07
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00822973
Message ID:
00823000
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform