WEBUTIL AS_TO_CLIENT [message #429438] |
Tue, 03 November 2009 16:18 |
dlwixon
Messages: 92 Registered: September 2008
|
Member |
|
|
Can anyone give me an example of how to use the AS_TO_CLIENT webutil function?
The WebUtil User's Guide doesn't give examples. It just gives a description of what the function does:
Quote:AS_To_Client Transfers a file from the application server to the client. The webutil.cfg parameter transfer.appsrv.enabled must be set to true to use this function, and if the transfer.appsrv.accessControl parameter is also set to true, the upload target directory must be listed in the transfer.appsrv.read. list. It is sensible to call the WebUtil_File_Transfer_IsASReadable function with the target filename before starting the download to ensure that you will be able to read from this location on the application server.
|
|
|
|
|
Re: WEBUTIL AS_TO_CLIENT [message #522528 is a reply to message #429438] |
Sun, 11 September 2011 23:24 |
|
salrizzo
Messages: 7 Registered: December 2009
|
Junior Member |
|
|
Example of AS_TO_CLIENT:
if NOT webutil_file_transfer.AS_TO_CLIENT('C:\Xming\Xming.zip', './Xming.zip')
then
message('Failed!');
end if;
Note that './Xming.zip' must be on the same directory of the form (.fmx) calling the function AS_TO_CLIENT().
Alternatevely use URL_TO_CLIENT().
|
|
|