Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning PDF files over VFPCGI.EXE
Message
 
To
02/04/2003 15:37:03
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00773221
Message ID:
00773358
Views:
17
Part of the problem, no doubt, is that communication with the web server is going thru an intermediate text file. That's how VFPCGI works. I had to add a special routine to upload binary data so it's probably something similar. You'd probably have more success creating a VFP COM mtdll and calling that from asp or asp.net. All the communication is thru COM. The added benefit is much better speed and scalability...
>I try to use VFPCGI.EXE shipped with VFP 7 to return PDF files
>to Web Server.
>
>Unfortunately, it seems that VFPCGI does not return binary data correctly.
>Adobe viewer displays message saying that PDF file is corrupted.
>
>Any idea how to return PDF files using VFPCGI ?
>
>I use the following code to create a file response file to VFPCGI:
>
>
>strtofile( "Content-Type: application/pdf"+ CRLF+CRLF + ;
>        filetostr( 'mypdf.pdf' ), m.lcDataFile )
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform