>Hi
>
>I need to send a MS Word document from my fat client app to the server. Is this possible????
>
>I am using the WestWind software to assist in this. I have tried simply using FILETOSTR() to place it on my HTTP command string but when it appears at the other end it does not STRTOFILE() in to the same as the original.
>
>What do I need to do to it so that I can successfulty transfer it back to the host???
>
>I have tried using the wwIPStuff::Encode() & dbfDecode() functions without any further success.
>
>Is there a maximum length one can pass using the HTTP command string function????
>
>Perhaps I am doing it all wrong. I am rather new to this.
>
>
>Regards
>Geoff Scott
Geoff,
Probably it's related with data needs to be converted to binary. With VFP7 you could use XML functions to put the data in a memo encoded to base64 bin and decode at other end.
CREATE CURSOR myCursor (mydata m nocptrans)
APPEND BLANK
APPEND memo myData FROM "myworddoc.doc"
CURSORTOXML('myCursor','myworddoc.xml',1,512,0,'1')
*Send
XMLTOCURSOR('myworddoc.xml','myWordCrs',4+512+1024)
SELECT myWordCrs
STRTOFILE(myWordCrs.myData,'myworddoc.xml')
Or better you could FTP transfer the file.
Cetin