Welcome Guest, Not a member yet? Register   Sign In
Serving an Image with HTTP Headers; white space bug. [SOLVED]
#4

[eluser]n0xie[/eluser]
This is how we pass images through a controller although I doubt there is anything wrong with your code.

Code:
function img()
    {

        $img = fopen(site_url('public/img/someimage.gif'), 'r');
        if ($img)
        {
            header('Content-Type: image/gif');
            fpassthru($img);
        }
        }


Messages In This Thread
Serving an Image with HTTP Headers; white space bug. [SOLVED] - by El Forum - 01-13-2010, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB