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 filerec

File to send, compatible with WrapBlob output

data

The blob to send

filename

The filename to use

mimetype

The file's mime type

RECORD options

Options

inline

Set 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.