Now in the routes which is within the config folder I have written the following :
$route['tmp']="UserController/test";
Now when I am executing the file,the file is getting downloaded but its not showing the picture within the file.When I am opening it with Fax-Viewer its saying "No preview available" why?.The above code in views, I got from internet.