Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending a MS Word Doc via HTTP
Message
From
29/04/2002 04:22:55
 
 
To
29/04/2002 04:05:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00650259
Message ID:
00650267
Views:
20
Thanks, I'll give it a go

Regards
Geoff Scott

>>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
May all your weeds be wildflowers
Previous
Reply
Map
View

Click here to load this message in the networking platform