I have an image $file ( eg ../image.jpg )
$file
../image.jpg
which has a mime type $type
$type
How can I output it to the browser?
That's the short version. There's a few extra little things you can do to make things nicer, but that'll work for you.