comp • gb.web • response • sendfile

Response.SendFile (gb.web)

Static Sub SendFile ( Path As String [ , ContentType As String ] )

Sends a file to the client.

If you use this method, you should end the script immediately. Do not use any other method!

Note that that all headers defined with AddHeader are sent too.