![]() |
Loading an image into a View. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Loading an image into a View. (/showthread.php?tid=84752) |
Loading an image into a View. - davecoventry - 11-06-2022 I have some image files in ROOTPATH."writable/users/ which I am trying to display in the user's browser. My Routes.php contains the line:$routes->get('/loadthumbs/(:any)', 'ThumbController::loadthumbimage/$1'); PHP Code: <?php The image file is fine and opens locally with no problem, but it doesn't display in the bowser. Instead I get a message Code: The image "https://example.com/loadthumbs/8/1.bmp" cannot be displayed because it contains errors. Can anyone suggest a solution? RE: Loading an image into a View. - davecoventry - 11-11-2022 See my post under the "Best Practices" subforum. |