Documentation
output
usage
file->output()
Outputs the content of the file directly to the browser.
exemples
include('../Kernel/common/file.class.php');
$file = new File('/media/picture1.jpg');
$file->output(); // renders the image in the browser. If you want to force the download of the file, use $file->forceDownload()