[eluser]SoulM4n[/eluser]
[quote author="toopay" date="1304710802"]Okey, this started sound UNBELIEVABLE, just make sure the file is exist, do this...
Code:
if (file_exists($imagepath))
{
var_dump(file_get_contents($imagepath));
/*
$this->output->set_content_type('jpeg');
$this->output->set_header('Content-Type: image/jpeg');
$this->output->set_output(file_get_contents($imagepath));
*/
}
[/quote]
Unbelievable is the right word ... i'm going crazy with this problem.
The file exist .. because with your code i get something like :
Code:
string(4658) "ÿØÿàJFIFÿþ;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 90 ÿÛC ÿÛC ÿÀxx"ÿÄ ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvw
p.s. of course i had to cut the whole content of the page because it was huge
So the file exist and the path seems to be absolutely correct