wwProcess::WebResource

Generic output method can be used to serve embedded resources like related image, css, javascript or other files through the application

This routine can be called with a URL like this:

/wconnect/WebResource.wwd?Resource=WcPowerLogo

where .wwd is the extension of your scriptmap. You can also access the resource like this:

/wconnect/wc.dll?MyProcess~WebResource~&Resource=WcPowerLogo

Resources can be of any type and can be added to the server at any time via the wwServer::AddResource(). This functionality is very useful for including related files of your application as part of the EXE rather than including the files externally in the Web directory. To use:

Note that you can use wwProcess::GetWebResourceUrl to get a URL returned in the current application that can be used to retrieve a resource.

o.WebResource()                                                  

See also:

Class wwProcess | wwServer::AddResource


  Last Updated: 9/2/2006 | © West Wind Technologies, 2008