SendWrappedWebFile (open)
Send a wrapped blob to the web client
Syntax
LOADLIB "mod::system/lib/webserver.whlib";
MACRO SendWrappedWebFile(RECORD filerec, RECORD options)Parameters
RECORD filerecFile to send, compatible with WrapBlob output
dataThe blob to send
filenameThe filename to use
mimetypeThe file's mime type
RECORD optionsOptions
inlineSet to TRUE to try to display the file inline instead of always downloading it
Description
Reset the response and send the specified file to the user. This function does not return, but the VM, including any database transactions, will remain open until the file transfer is complete.